-
function to smooth out motion, POST expression, no keyframes?
Say I have a layer whose position is set only by expression, i.e.
L=thisComp.layer("text_iso"); s=L.sourceRectAtTime(); r= [s.left + s.width/2, s.top + s.height/2];
The layer it’s taking its position from ‘cuts’ from position to position.
Now I want this new layer to move in a linear fashion from the last position to the new position over .5 seconds.
I thought `smooth()` might do this, but it’s not.I know I can do this by writing a `linear()` function that looks for change through `valueAtTime`, etc., but is there an easier way?
Or does someone have that snippet handy?