-
Move from position to position by x and then y
Hey All,
I’m trying to cook an expression where a layer will move around the comp to a number of keyframed positions, but rather than move ‘as the crow flies’ it moves first in the x dimension and then the y.
I’ve been looking at the ‘nearestKey’ command and ‘.key’, but I can’t quite figure it out.
I thought maybe you could treat each move as a right angled triangle, where the direct move is the hypotenuse and then you could use trig to figure out the x and y… but again, my brain has failed me.
It doesn’t help that it’s my first day back after christmas either!
Any pointers will be greatly appreciated.
P