-
connect 2 nulls with line using inPoint
Hi!
I connected 2 nulls with a line (shape layer), and I have to repeat that line a looot of times.
The nulls are moving at irregular intervals at the first frames of the timeline, so I want the bunch of lines follow these animations starting with their inPoint… I have it working with the position, but I have some issues making the rotation working with the valueAtTime…
any ideas?
this is what I was trying for the rotation, but the offsetting is not working properly
t = time-inPoint;
L = thisComp.layer("up")
J=thisComp.layer("bottom")
a=L.transform.position.valueAtTime(L.inPoint+t);
b=J.transform.position.valueAtTime(J.inPoint+t);
r=Math.atan2(b[1]-a[1],b[0]-a[0]);
radiansToDegrees(r);thanks!