Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Random scale up of multiple objects.

  • Random scale up of multiple objects.

    Posted by Jay Cave on October 11, 2023 at 6:32 pm

    OK so I did a search but couldn’t find anything exactly what I was trying to do.

    I have a map of a US State that has about 50 or so locations with push pin dots.

    I need these push pin location dots to randomly come on over the course of the animation which is about 5 seconds. Scaling up.

    Push Pins need to come on fast (like scale up from 0 to 100% within 12 frames or so with ease).

    Might need opacity also from 0 to 100 but not sure yet. Definitely scaling up from 0-100%.

    Also might need a specific time duration vs the whole animation duration if client wants them to finish before the animation (say finish at 3.5 secs while comp is 5 sec).

    Looked for a few expressions but can’t get one to do just this.

    So quick scale up for each individual dots, but all 50 need to randomly fade up over the duration of the animation .

    Any help is appreciated.

    Brie Clayton replied 4 months, 2 weeks ago 3 Members · 5 Replies
  • 5 Replies
  • Dan Ebberts

    October 11, 2023 at 6:47 pm

    Something like this maybe (for scale):

    maxTime = 3.5;
    fadeFrames = 12;
    fadeDur = framesToTime(fadeFrames);
    seedRandom(index,true);
    myStart = random(maxTime - fadeDur);
    s = easeOut(time,myStart,myStart+fadeDur,0,100);
    [s,s]
  • Jay Cave

    October 11, 2023 at 7:07 pm

    I think this exactly did what I need. I cannot express how much this helped. If I have any other questions or changes I’ll reply but I think this solves everything!!

    The only thing I could possibly think of them coming back with is a random size of the pins (like a small range of say 25% difference in size randomly). Otherwise this works perfectly!

  • Dan Ebberts

    October 11, 2023 at 7:27 pm

    Like this maybe:

    maxTime = 3.5;
    fadeFrames = 12;
    minScale = 75;
    maxScale = 100;
    fadeDur = framesToTime(fadeFrames);
    seedRandom(index,true);
    myStart = random(maxTime - fadeDur);
    myScale = random(minScale,maxScale)
    s = easeOut(time,myStart,myStart+fadeDur,0,myScale);
    [s,s]
  • Jay Cave

    October 11, 2023 at 7:42 pm

    Yep that worked! Thanks Dan for all the help. It’s always amazing to see how powerful expressions are and how much time can be saved on things like this. Wish they were easier to do for those of us not gifted with math/coding skills.

  • Brie Clayton

    October 11, 2023 at 9:59 pm

    Thank you, Dan, for this solve!

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