Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Scale expression

  • Scale expression

    Posted by Chris Holland on September 10, 2019 at 4:17 pm

    Hi,

    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
    seedRandom(index,true);
    myTime = random(maxTime);
    if (time > myTime) 100 else 0

    Thanks, I really hope you can help.

    Dan Ebberts replied 6 years, 11 months ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    September 10, 2019 at 4:46 pm

    Try this:

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

    Dan

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy