-
animate anchor point without moving layer
I need to animate a layer so it rotates around different points at different times. I’ve tried using multiple nulls and parenting them to one another, but there are so many different rotations in the animation that I need to rotate around, things always get out of whack as I try to adjust one of them.
I’d like to be able to animate the anchor point to move to each position on the layer where I want it to rotate around, but the problem is that when the anchor point moves, the layer moves with it (the pan-behind tool won’t help in this case, it only messes up the rest of the animation).
My thought was to add an expression to the Position of the layer which will in effect cancel out the movement of the Anchor Point. This way, moving the anchor point wouldn’t affect the position, but the layer can still rotate around the anchor point.
Obviously my problem is I can’t figure out the expression to add to the layer’s Position. Something else that needs to be taken into account is that the expression still works once the layer is rotated.