ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Gradual scale animation

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
ANtonio Piñero
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.

Thanks in advance for your help.


Return to posts index

Dan Ebberts
Re: Gradual scale animation
on Jan 5, 2017 at 4:06:18 pm

Like this maybe:

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


Dan



Return to posts index

Dan Ebberts
Re: Gradual scale animation
on 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



Return to posts index


ANtonio Piñero
Re: Gradual scale animation
on Jan 11, 2017 at 10:24:12 am

Thanks for your help!! It worked really good for a "zoom earth from the space" project with all the growing resolution layers linked to one of them. I made a lineal (gradual) scale animation with your expression, then precompose it and remapped the time for ease the first and last keyframes.
Thanks


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]