I am trying to find a script or technique that would allow the repositioning of a layer anchor point, or ideally the anchor points of multiple selected layers, to the center of the composition / frame.
What I am trying to achieve is to move 3D layers' Z positioning while maintaining their relative position to the frame.
I am using an expression that maintains the relative size of layer when changing the Z position, though since I am working with layers of different sizes and in different positions, the layers' relative XY position moves once the Z position is changing, even though the size remains the same.
Currently in order to achieve that I am placing horizontal and vertical guides at the center of the frame and using the Pan Behind tool to snap to the center - that keeps the layer in place when I move it through the Z space. As I am working with a large number of layers, it would be great to have a script / expression that will set that for all the layers. Anyone?
"I have not failed 700 times. I have succeeded in proving that those 700 ways will not work. When I have eliminated the ways that will not work, I will find the way that will work."
---THOMAS EDISON on inventing the light bulb.