-
Random Lines expression help.
I’m working with Dan’s expresison that will move a vertical bar back and forth across the screen randomly.
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]]I can’t for the life of me figure out how to modify it to make a horizontal bar move randomaly up and down.
I’m a tinkerer not a coder.. I’ve modified every setting and line that I thought might pertain to horizontal/vertical or X/Y coords and yet the thing will still keep sliding vertically.What am I doing wrong.
Thanks.
Jeff