Hi Dan,
I have this expression applied to the Amount of a Text Animator, Expression Selector. I want the animation to return to its original start position when the Current Time Indicator gets to the end of the layer.
minVal = -10;
maxVal = 10;
minDur = .5;
maxDur = 1;
seedRandom(textIndex,true);
prev = next = inPoint;
prevVal = nextVal = 0;
while (time >= next){
prev = next;
prevVal = nextVal;
next += random(minDur,maxDur);
nextVal = random(minVal,maxVal);
}
ease(time,prev,next,prevVal,nextVal);
Eduard