FORUMS: list search recent posts

# Inertial Bounce on y axis scale only

FAQ   •   VIEW ALL
 Inertial Bounce on y axis scale only on Oct 14, 2011 at 12:33:28 am

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.
Cheers

a = .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;}

 Re: Inertial Bounce on y axis scale onlyon Oct 14, 2011 at 3:04:16 am

I haven't test this, but I think you would just need to change one line:

value + [0,v[1]*amp*Math.sin(freq*t*2*Math.PI)/Math.exp(decay*t)];

Dan

 Re: Inertial Bounce on y axis scale onlyon Oct 14, 2011 at 3:10:02 am

As always Dan, Spot on. Thanks a million!

 Re: Inertial Bounce on y axis scale onlyon Oct 20, 2011 at 10:27:11 pm

Hi I have posted a question similar to this but as I am new it is awaiting moderation.

Is there a way to get this to work without the need for keyframes?

Would love to be able to apply this to dozens of layers and get it to start at the inPoint, also would be awesome to slightly change the variables with sliders to get a nice randomness about it.

Would also love to have it do the same in reverse at the outPoint with a quick little 'bounce' and then out she goes.