Skip to main content
Known Participant
September 5, 2010
Question

Expressions and Parents

  • September 5, 2010
  • 1 reply
  • 855 views

I'm trying to create an expression that takes as its input the position of a layer in an animation.

However, that layer is tracked to a null which is animated, rendering the "thisComp.layer("Track").transform.position" values pretty useless because they don't inherit the transformations of the parent.

What's a good way to make an expression that grabs the actual position (or rotation, or scale) regardless of how many parents are in the chain?

This topic has been closed for replies.

1 reply

Todd_Kopriva
Inspiring
September 5, 2010

See the videos by Carl Larsen linkd to on this page.

ArivlAuthor
Known Participant
September 6, 2010

Thanks!  That's just what I was looking for! 

L=thisComp.layer("Track");

P=L.toWorld(L.anchorPoint);

works perfectly for position.

I'm not sure how to repurpose the expression for scale or rotation, though. Any thoughts?