Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Expression to parent X & Y position values only?

  • Expression to parent X & Y position values only?

    Posted by Tim West on April 13, 2010 at 10:09 am

    Hi,

    I am trying to create an expression that parents the X & Y position of one null (‘A’) to the X & Y position of another null (‘B’) only – I want to be able to animate the Z postion of null A independently.

    Can anyone show me how to write this expression?

    Any help much appreciated,

    Thanks for your time,

    T

    Jason Hearne replied 14 years, 3 months ago 3 Members · 3 Replies
  • 3 Replies
  • Ben Rollason

    April 13, 2010 at 10:54 am

    On the position attribute of null A:

    L = thisComp.layer("Null B");
    LP = L.toWorld(L.anchorPoint);
    
    [LP[0], LP[1], value[2]];
    

    -Ben.

    vfx.benrollason.com

  • Tim West

    April 13, 2010 at 11:11 am

    Thanks for this Ben – works great.

    T.

  • Jason Hearne

    February 2, 2012 at 8:11 pm

    Is it possible to get this working on a slider controlling X only?

    Jason Hearne
    EdenFX
    Visual Effects and Animation

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