-
Ebberts Random Motion flip position
I can’t for the life of me figure out how to flip the random motion from X position to Y position motion. Anybody know how this works?
Here’s the code from Dan’s site
segMin = .3; //minimum segment duration
segMax = .7; //maximum segment duration
minVal = 0;
maxVal = thisComp.width;end = 0;
j = 0;
while ( time >= end){
j += 1;
seedRandom(j,true);
start = end;
end += random(segMin,segMax);
}
endVal = random(minVal,maxVal);
seedRandom(j-1,true);
dummy=random(); //this is a throw-away value
startVal = random(minVal,maxVal);
y = position[1];
ease(time,start,end,[startVal,y],[endVal,y])Jason Jantzen
vimeo.com/jasonj