-
Random animation with pause/hold time
Hi,
I want to create random animation between 2 specific value with a pause/hold time of 1 second in between the movements.
I got this expression online which works for random animation, how can add 1 second pause/hold time in this expression.
segDur = 1;
minVal = 0;
maxVal = 140;
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);Thank you.