ADOBE AFTER EFFECTS: Forum Expressions Tutorials Podcasts Creative Cloud

Inertial Bounce Scale - NOT starting from zero

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Ed StablesInertial Bounce Scale - NOT starting from zero
by on May 31, 2016 at 3:55:29 pm

I've been using this expression to add a bounce to scale:

rate = 500;
rampDur = value[0]/rate;
freq = 3;
decay = 5;
w = freq*Math.PI*2;

if (time < (inPoint+outPoint)/2){
if (time < (inPoint + rampDur)){
s = linear(time,inPoint,inPoint+rampDur,0,value[0]);
t = time - (inPoint+rampDur);
s = value[0] + rate*Math.sin(t*w)/Math.exp(t*decay)/w;
if (time > (outPoint - rampDur)){
s = linear(time,outPoint-rampDur,outPoint,value[0],0);
t = (outPoint - rampDur) - time;
s = value[0] + rate*Math.sin(t*w)/Math.exp(t*decay)/w;

What I don't like about it is that it kicks in at the first frame of the layer, and always starts from zero. Is there a way to scale up from, say, 100% to 150% AND add a bounce to it? Preferably this wouldn't need to occur at the start of a layer.
Thank you

Return to posts index

Michael SzalapskiRe: Inertial Bounce Scale - NOT starting from zero
by on Jun 1, 2016 at 12:59:02 pm

Look into Ease and Whizz

- The Great Szalam
(The 'Great' stands for 'Not So Great, in fact, Extremely Humble')

No trees were harmed in the creation of this message, but several thousand electrons were mildly inconvenienced.

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2016 All Rights Reserved