Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions synchronized random y scale with Easing and holdTime

  • synchronized random y scale with Easing and holdTime

    Posted by Robert Paynter on October 15, 2013 at 3:22 am

    I’m using Dan’s “random motion – synchronized” expression on a slider which I then pick whip to my y scale value. I’m hoping that there is a simple way to add a holdtime to it. But I cannot figure it out.

    segDur = .5;
    minVal = [10];
    maxVal = [100];

    seed = Math.floor(time/segDur);
    segStart = seed*segDur;
    seedRandom(seed,true);
    startVal = random(minVal,maxVal);
    seedRandom(seed+1,true);
    endVal = random(minVal,maxVal);
    ease(time,segStart,segStart + segDur, startVal, endVal);

    Robert Paynter replied 12 years, 6 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    October 15, 2013 at 2:53 pm

    One way would be to increase the segment duration to include a hold time at the end:

    segDur = .7;
    holdDur = .3;
    minVal = [10];
    maxVal = [100];

    seed = Math.floor(time/segDur);
    segStart = seed*segDur;
    seedRandom(seed,true);
    startVal = random(minVal,maxVal);
    seedRandom(seed+1,true);
    endVal = random(minVal,maxVal);
    ease(time,segStart,segStart + segDur-holdDur, startVal, endVal);

    Dan

  • Robert Paynter

    October 15, 2013 at 5:01 pm

    That’s perfect Dan!
    Thanks for everything.

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