-
not following any leader
Hi:
I copied the follow the leader expression from an old post here but it doesnt seem to work.
I have a layer called “Leader” and I apply to the childs the following but it triggers an error. Maybe there is some typo or something.
Thanks.
inertia = 0.75;
stiffness = 0.20;
lagValue = calcValue(0);
f= thisComp.frameDuration;
will=0;
for (t=0; t<=time; t+=f) { delta = calcValue(t) - lagValue; will = will * inertia + delta*stiffness ; lagValue +=will } lagValue; function calcValue(t) { return thisComp.layer(index-1)position.valueAtTime(t-0.1); }