-
A couple 3D layer – camera facing expression questions.
Hi all, there are 2 expressions that I need, maybe if I sat down with pen and paper I could figure them out but I would have to dig out my trigonometry books, and I’m sure these expressions are out there somewhere so no point re-inventing the wheel!
1. I want a layer to always be PARALLEL to the camera. The Auto-orient option always POINTS the layer to the camera, so if the camera is quite close and zoomed in on the layer to one side, it will rotate and distort heavily. What I want is for the layer to always be flat towards the camera (called camera-facing in many circles).
2. I want a layer to always be parallel to the camera (same as above) but only turning around its Y axis, so its always perpendicular to the floor, but its X axis is parallel to the camera plane. Again, not POINTING to the camera otherwise it will be distorted and not flat if the camera is zoomed in on one side.
I’ve searched the web and found almost similar solutions, but they always involved linking the camera and 3D layers to the same null and rotating the null to control camera rotation etc… but that will not work for me as my camera animations are quite complex and exported from cinema4D or 3DSMax. The camera orientation and rotation values are all zero, and the full motion is controlled by the camera position and anchor point – to convert that to the null parented system is out of the question! A simple copy/paste of an expression on the desired 3D layers is the best solution for me.
I’m surprised I havent found these expressions anywhere as they seem quite vital to do various kinds of 3D comping! Any feedback welcome,
cheers,