Mailing List AE-List@media-motion.tv ? Message #42710
From: Dan Ebberts <debberts@comcast.net>
Subject: Re: [AE] expression and parent rotation value
Date: Mon, 26 Mar 2012 16:41:37 -0700
To: After Effects Mail List <AE-List@media-motion.tv>
Sorry, I meant you would have to duplicate "Node" in the project bin (not "Nodes").

Dan

-----Original Message----- From: Dan Ebberts
Sent: Monday, March 26, 2012 4:40 PM
To: After Effects Mail List
Subject: Re: [AE] expression and parent rotation value

So there is only one "Node" precomp which you have duplicated (as layers)
inside the "Nodes" comp, is that correct? If that's the case, I think you're
out of luck. There's no way for an expression to know which instance of the
precomp it is in. You would have to duplicate Nodes in the project bin and
each copy would need a unique name, then you could do it with an expression
like this:

-comp("Nodes").layer(thisComp.name).transform.zRotation

Dan

-----Original Message----- From: tolga burcak
Sent: Monday, March 26, 2012 4:08 PM
To: After Effects Mail List
Subject: [AE] expression and parent rotation value

Hi,

I want to ask a question about expressions.

I have a comp named "Nodes". There are 15 same precomped layers in it
named "Node". I'm rotating all nodes in different values for each. I
have a layer in "Node" comp and I want to make it rotated. I'm trying
to subtract the parent layers rotation value but i couldnt access it
dynamically.

I dont want to use like this:

comp("Nodes").layer("Node1").transform.zRotation

because i dont want to populate Node1, Node2,...Node15 in project
panel. It may be another, (not hardcoded) way i guess.

I want to access rotation value like this:

parent.transform.zRotation

I hope i could tell my question clearly. Thanks :)

+---End of message---+
To unsubscribe send any message to <ae-list-off@media-motion.tv>


+---End of message---+
To unsubscribe send any message to <ae-list-off@media-motion.tv>
 
Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to ListMaster