-
How to use expressions to invert position properties?
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,
Sorry, there were no replies found.