-
How to change the position of an object with easy movment with expresions
Hi.
I need to change the 2D layer position with easy movments. In other word I have a simple square in the scene and I need to move out of the scene but with a easy movment using marks in the layerI found this expression to “see” the layer mark
but what can I add to this expression to control the object to move it out of the scene with easy movment.Thanks
n = 0;
t = 0;
if (marker.numKeys > 0){
n = marker.nearestKey(time).index;
if (marker.key(n).time > time) n--;
}
if (n > 0) t = time - marker.key(n).time;