Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions How to use expressions to invert position properties?

  • How to use expressions to invert position properties?

    Posted by Eduardo Asta on May 9, 2022 at 11:33 am

    I’m building a rig do controle a bunch of layers. A typcal shape layer must move from A to B if its index holds an odd number. But if the index is even, it must go from B to C. It means, it must go in reverse direction.

    The following expressions has worked for the majority of the layers:

    var a;

    inverter = thisComp.layer(index+5).transform.xPosition;

    if (inverter> 0){a = 1} else {a = -1};

    Offset + value*a

    But for some layers the expression is not working at all (see image bellow). Does anyone know how to solve it?

    My best,

    Eduardo Asta replied 4 years ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

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