-
Expression to orbit value of keyframes with the layer’s anchor point
Hi,
I am trying to create an expression where the whole position animation of an object can be rotated with regards to the layers anchor point.
So to put this into a simple scenario we have the following.
We have 2 position keyframes;
– Keyframe 1 with a value of 0,100.
– Keyframe 2 has a value of 0,0.
– The Anchor Point is 0,0.
I would like to link this somehow to an angle control, so that if I rotate the angle control to 90 Degrees, the first keyframe will be of value 100,0.
Of course the scenario can be more complex with more keyframes in between and so on.
Basically acting as if it was parented to its ‘Anchor Point, position’, and its ‘anchor point’ is being rotated carrying the whole rotation with it.
Can anyone pitch in? Till now I had been trying to parent the separate x, y values with a slider control. Basically valueX*sliderValueX, but this is very limiting for our project.
Would greatly appreciate any feedback 🙂
Thanks!