Page 1 of 1

fromWorld toWorld are confusing myWorld

Posted: February 20th, 2007, 10:46 am
by byronnash
Sorry for the lame pun there.

I need to track the position of a parented layer. The parent is scaling and it's throwing off my toWorld expression. How is this handled?

Code: Select all

p = thisComp.layer(index -1);
toWorld(p.anchorPoint)
I have the above expression on the position of the layer I need to move. The "p" layer is a parented object under a null.

Posted: February 20th, 2007, 1:50 pm
by Dan Ebberts
I'm not in front of AE right now, but I think you'd need to do it like this:

p = thisComp.layer(index -1);
p.toWorld(p.anchorPoint)


Dan

Posted: February 20th, 2007, 2:00 pm
by byronnash
Thanks for responding Dan, you seem to be about the only one in the world that understands the Layer Space transforms. I may have my expression targeting the wrong layer now. I need to play with it some and I'll post when I get it working.