Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions making copy of a parent follow the parent’s position but in opposite x axis

  • making copy of a parent follow the parent’s position but in opposite x axis

    Posted by Yamir Bhatt on June 9, 2009 at 2:44 pm

    I am tring to create 2 objects starting to move from the sape position. but i only want to key frame one object. hopping the other object will follow its position but in opposite x axis. what is the siplest way to do this?

    Yamir Bhatt replied 16 years, 11 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    June 9, 2009 at 3:17 pm

    A position expression like this should do it:

    L = thisComp.layer(“parent”);

    p0 = L.transform.position.valueAtTime(0);
    p1 = L.transform.position;

    [2*p0[0]-p1[0],p1[1]]

    Dan

  • Yamir Bhatt

    June 9, 2009 at 3:28 pm

    thanks that worked perfect. thanks

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