-
Layer points to another layer with delay?
I’m using this code so that a layer rotates towards a parent.
Is there a way to add a delay in frames to the rotation?
L1 = thisLayer;
L2 = Null_01;
p1 = L1.toWorld(L1.anchorPoint);
p2 = L2.toWorld(L2.anchorPoint);
delta = p2 - p1;
follow = radiansToDegrees(Math.atan2(delta[1],delta[0]));