-
Random Lines – movement from a certain point
Hi,
I’m working with Dan’s Random Lines Expression.
Now I tried to set a certain starting point, which works fine when I set the startVal = value[0], but there is a jump to the next frame. How can I make the line move without a jump?if (time<=3) {
value
}else {
tMin = .5; //minimum segment duration
tMax = 6; //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 = value[0];
x = ease(time,start,end,startVal,endVal);
[x,value[1]]
}