ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

FAQ   •   VIEW ALL
 Gradual scale animation on Jan 5, 2017 at 11:43:38 am

Hi,
Sorry about my english. How can I animate a layer scale (x and y) gradually, not lineally? I mean, if I animate from 100% to 0% in 100 frames lineally, the difference between the 1st frame and the 2nd frame is 1%, but between 99th and 100th is 100% (1% to 0%). It can be almost fixed by easing the end of animation, but is not proportionally the same. I need the scale value to decrease proportionally each frame.
For example, 100 _ 99 _ 98.01 _ 97.02 _ 96.05...

this is 100 _ 100*0.99 _ 99*0.99 _ 98.01*0.99 _ 97.02*0.99...

Maybe with an expression I can detect the previous frame value and multiplicate it. I don't know.

 Re: Gradual scale animationon Jan 5, 2017 at 4:06:18 pm

Like this maybe:

f = timeToFrames(time-inPoint);
m = Math.pow(.99,f);
value*m

Dan

 Re: Gradual scale animationon Jan 5, 2017 at 4:39:49 pm

Actually, I like this a little better:

f = (time-inPoint)/thisComp.frameDuration;
m = Math.pow(.99,f);
value*m

Dan