-
Inertial Bounce on y axis scale only
Hi Everyone,
I was wondering if anyone can help. I am trying to scale an object up from 0 – 100% and have inertial bounce applied to it. The thing is I only want the bounce to effect the “y” axis. Can’t figure out how to get this done.
Cheersa = .03; f = 4.0; d = 10.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);amp = a;freq = f;decay = d;
value+ v*amp*Math.sin(freq*t*2*Math.PI)/Math.exp(decay*t);}else{value;}