Play around with this – after 35 seconds of random motion, it will slide into “finalPos” over a 1 second transition period.
finalPos = [100,100];
maxTime = 35;
transitionTime = 1;
segDur = 12;// duration of each “segment” of random motion
minVal = [0.1*thisComp.width, 0.1*thisComp.height];
maxVal = [0.9*thisComp.width, 0.9*thisComp.height];
t = Math.min(time, maxTime);
seed = Math.floor(t/segDur);
segStart = seed*segDur;
seedRandom(seed,true);
startVal = random(minVal,maxVal);
seedRandom(seed+1,true);
endVal = random(minVal,maxVal);
randPos = ease(t,segStart,segStart + segDur, startVal, endVal);
ease(time,maxTime,maxTime + transitionTime,randPos,finalPos)
Dan