[Closed] Inertia expression?
Hey guys, I’m looking for the 3ds max equivalent of After Effects’ beloved inertia expression.
amp = .1;
freq = 2.0;
decay = 2.0;
n = 0;
if (numKeys > 0){
n = nearestKey(time).index;
if (key(n).time > time){
n–;
}}
if (n == 0){ t = 0;
}else{
t = time – key(n).time;
}
if (n > 0){
v = velocityAtTime(key(n).time – thisComp.frameDuration/10);
value + vampMath.sin(freqt2Math.PI)/Math.exp(decayt);
}else{value}
It’s basically a very simple way to add bounce and spring effects to any animated value inside AE. I guess 3ds max’ spring controller comes closest to this, although that one only comes as a position controller. What I’m hoping to use this for is the animated angle of a bend modifier, so that when the bending stops, the value actually shoots over the key’s value, bouncing around it, and finally setteling into it.
Is this at all possible?
I’ve tried using flex for it, but the geometry is relatively high poly plus flex distorts the mesh, as it just “moves” vertices around. I guess an expression that just affects the animated value of the bend modifier would be a lot faster than flexing the (heavy) geometry…
simplest way is probably Peter Watje’s free plug-in:
http://www.maxplugins.de/r2013_files/watje/FloatSpringControl_v1.1_Max2013.zip
docs here:
TC