-
Random Lines Expression
I am using Dan Ebbert’s random lines expression
https://www.motionscript.com/expressions-lab-ae65/random-lines.htmlhow can I change the expression for horizontal bars?
I cant figure out what part of the expression changes [x,y]tMin = .5; //minimum segment duration
tMax = 2; //maximum segment durationend = 0;
j = 0;
while (time >= end){
j++;
seedRandom(j,true);
start = end;
end += random(tMin,tMax);
}
endVal = random(thisComp.width);
seedRandom(j – 1,true);
x = random(); //this is a throw-away value
startVal = random()*this_comp.width;
x = ease(time,start,end,startVal,endVal);
[x,value[1]]