FORUMS: list search recent posts

synchronized random y scale with Easing and holdTime

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Robert Paynter
synchronized random y scale with Easing and holdTime
on Oct 15, 2013 at 3:22:17 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);


Return to posts index

Dan Ebberts
Re: synchronized random y scale with Easing and holdTime
on Oct 15, 2013 at 2:53:05 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



Return to posts index

Robert Paynter
Re: synchronized random y scale with Easing and holdTime
on Oct 15, 2013 at 5:01:28 pm

That's perfect Dan!
Thanks for everything.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]