-
Follow the Leader w/ elastic motion. . . follow-up
this was the final result from the earlier post: inertia = 0.01; stiffness = 1.10; 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.02) }I found an earlier post explaining how to use the Follow the Leader expression and add springy/elastic motion to the followers when the leader comes to a stop. I’m a novice when it comes to complicated script and I couldn’t seem to make this work for me. The post is below:
https://forums.creativecow.net/thread/227/7579#7583
My question is: where do I apply the script? Do I put it in the Follow the leader code, or is it applied to a null layer? I’ve tried different things and I keep coming up short.
Flip, if you’re around I’m sure you could help since its your script, but I’d be happy to hear any advice that comes my way.
Thanks Flip and thanks again CCOW!