-
X scale by time
Hi there
i´m a newbee and have a question. i try to tweak an expression i found here.
It works fine but it scales in both directions. it should only scale in x direction but never under 100%. tnx in advance
*hsegMin = 1; //minimum segment duration
segMax = 5; //maximum segment duration
minVal = 100;
maxVal = 130;end = 0;
j = 0;
while ( time >= end){
j += 1;
seedRandom(j,true);
start = end;
end += random(segMin,segMax);
}
s = random(minVal,maxVal);
endVal = [s,s];
seedRandom(j-1,true);
dummy=random(); //this is a throw-away value
s = random(minVal,maxVal);
startVal = [s,s]
ease(time,start,end,startVal,endVal)