move layer constantly in a certain direction depending on 3d-Rotation?
Hi,
I am trying to work my head around an expression, but am not able to write it.
I have multiple layers being assigned a random position as initial value.
I also apply a 3d-effekt for rotation on it, which I will keyframe manually.
I would like to have each layer move constantly to the right starting at its initial position, if the rotation of the 3d-effect = 0; and change direction (move to the left) if the 3d-effekt rotation changes to 180°.
I thought of using a "Transform"-Effect wherein to write an expression, so to not mess with the random-expression for the original Position. But that's my way of thinking to not make it too complicated.
Eather way, in theory I guess I need to:
get the position at the given time
then add a value if the Effect=0 or subtract if the Effect=180.
Haven't been able to write it though.
Any help appreciated as always 🙂
