Copy link to clipboard
Copied
So I'm just getting into After Effects expressions and though I know Javascript pretty well, that doesn't really seem to translate to knowing how it works i After Effects. I am now trying to write an expression that will make an object move to a specific position over a specific time, and then stopping at that position. The position is going to be a variable so I can't just make it a keyframe.
This feels like it should be super easy but I can't get it working and I have gone crazy googling as it seems there is no information what so ever about this anywhere. I might be a big idiot and missing something super simple, but please help me before I lose my mind.
Copy link to clipboard
Copied
Time is time, position is an array, interpolators are linear(), ease()and so on. Easy as Pi(e). Example (pseudo-code)
X=linear(time,startTime,endTime,startPosX,endPosX);
Y=linear(time,startTime,endTime,startPosY,endPosY);
[X,Y]
Mangle and expand as you need. More details in the online help and respective tutorials.
Mylenium