-
Dan expression spring? Physic laws?
I have been using this expression from Dan Ebberts. It sort of work, but I wonder if it could calculate the velocity from the previous keyframe to the next keyframe and calculate how much the spring effect is been affected. Calculating the pixel/per second?
Extra thought: Wouldn’t be great to see a plug-in developped by Dan that mimics different the physics of law? I heard that Motion 2 does some of that, but I am an After Effects person…n = 0;
if (numKeys > 0){
n = nearestKey(time).index;
if (key(n).time > time){
n–;
}
}
if (n == 0){
value
}else{
t = time – key(n).time;
veloc = 12
amplitude = 330;
decay = 3;
y = amplitude*Math.cos(veloc*t)/Math.exp(decay*t);
value+[y,y,0];
}