FORUMS: list search recent posts

Scale expression

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
chris holland
Scale expression
on Sep 10, 2019 at 4:17:33 pm


I need to create a map using dots, I want the dots to scale from 0-100 randomly over the space of 3 seconds to reveal/build the map.

I came across a post on here where someone had the exact same problem and the answer was this expression. He used it for opacity so I'm hoping it will work for scale?

I should also mention that I tried this expression on the opacity but I got an error message.

Do I have to change any of the elements within this expression for it to work? Is some of the text placeholder for someone to put in certain dimensions? I'm a novice with expressions so I apologise for my lack of knowledge!

maxTime = 3; // max time for all dots to appear
myTime = random(maxTime);
if (time > myTime) 100 else 0

Thanks, I really hope you can help.

Return to posts index

Dan Ebberts
Re: Scale expression
on Sep 10, 2019 at 4:46:02 pm

Try this:

maxTime = 3; // max time for all dots to appear
rampTime = .1;
myTime = random(maxTime-rampTime);
s = linear(time,myTime,myTime+rampTime,0,100);


Return to posts index

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