Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Scale up to random value

  • Scale up to random value

    Posted by Assaf Tshuva on April 19, 2016 at 3:51 pm

    Hello,

    I have a very large stock of objects that I want each to scale from 0 up to a random size (something between 2-6 percent, for example), and stay there, instead of keyframing all of them.
    The animation length could be fixed for all (let’s say 1 sec), but each object should start at different time (I’ve seen some expressions that could make such animations but relied on the global time code).

    Thanks in advance.

    Assaf Tshuva replied 10 years, 4 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    April 19, 2016 at 4:38 pm

    Like this maybe:

    maxDelay = 2;
    rampTime = 1;
    minVal = 2;
    maxVal = 6;
    seedRandom(index,true);
    delay = random(maxDelay);
    val = random(minVal,maxVal);
    linear(time,inPoint+delay,inPoint+delay+rampTime,0,[val,val])

    Dan

  • Assaf Tshuva

    April 20, 2016 at 10:19 am

    Worked perfectly (took down the delay parts, though), thank you.
    I still don’t get the linear expression…

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