: How make a 'null path' - center of objects following path What I mean: https://youtu.be/vHXavxVEfGk Can I do it? I want (invisible) null path to control objects position (but no rotation)
What I mean:
Can I do it? I want (invisible) null path to control objects position (but no rotation)
More posts by @RJPawlick971
1 Comments
Sorted by latest first Latest Oldest Best
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]
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.