Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Absolute Position Through a Null Expression

  • Absolute Position Through a Null Expression

    Posted by Nick Campbell on April 26, 2006 at 11:10 pm

    Howdy Cow,
    I am trying to develop an expression that will use a layers distance to the camera as a way to affect it’s transparency. The problem is that, when a layer is parented to a null, it locks itself to its original position, even if I move its parent. In other words, the layers “position” does not get any further away from the camera even though its parent (and therefore itself) IS moving away. Is there a way to access a layers absolute position to be used in an expression?
    Thanks,
    nick C
    creamyorange.com

    Serge Hamad replied 20 years, 4 months ago 3 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    April 27, 2006 at 12:52 am

    From within the same layer, use this:

    toWorld(anchorPoint);

    From another layer it would be like this:

    L = thisComp.layer(“child layer”);
    L.toWorld(L.anchorPoint);

  • Serge Hamad

    April 28, 2006 at 6:49 am

    Hey Nick,

    Just wanted to say that I love your new reel!

    Good luck, and nice to see you around.

    Serge

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy