-
blend random value every n frames and hold
I’, try to get a shape layer rectangle to change to a random size and hold, which the below does admirably….
holdTime = .5; //time to hold each position (seconds)
minVal = 100;
maxVal = 1000;
seed = Math.floor(time/holdTime);
seedRandom(seed,true);
x =random(minVal,maxVal);
y = value[1];
[x, y]However, I want it to blend between those values over ‘n’ frames, rather than jump from one value to the next.
Anyone have any idea?
thanks in advance!
P