What I mean: https://youtu.be/vHXavxVEfGk

Can I do it? I want (invisible) null path to control objects position (but no rotation)

1 Answer 1


If somebody interested - I did it with 3 nulls and expression. Probably it's not best way to do it. Paste below code in elements position

1st and 2nd null - start and end point of path
3rd null - only for controling X-axis

Tx = transform.position[0]; 
Ax = thisComp.layer("null 1").transform.position[0]; 
Ay = thisComp.layer("null 1").transform.position[1]; 
Bx = thisComp.layer("null 2").transform.position[0];
By = thisComp.layer("null 2").transform.position[1];

Ty = (((By - Ay) * (Tx - Ax)) / (Bx - Ax))+ Ay; 

[Tx, Ty]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.