-
Auto-orient camera ONLY along x and y paths
Hi all – I posted this in after effects basics, but it was suggested that I post here.
I have a problem which I think can be fixed using expressions, but all the solutions I’ve found relate to auto-orienting layers, and not the camera itself.
The issue is this: I have a 2D map of the world, and I would like the camera to buzz around it, pausing for little graphics to pop out of the map at various points.
The camera hovers 20 or so pixels above the map in 3D space, and is angled slightly downwards to give the attached view.I drew a path in illustrator to guide the complicated camera movement across the map. So far, so good. The camera is linked to a null, and I pasted the path from illustrator into the null’s position. However, it would save me a lot of trouble manually rotating the camera if I could just auto-orient the camera along the path. The problem is, when I try to do this (although it works beautifully for the x and y orientation), after effects doesn’t know what to make of the z value (which remains constant) and sort of flips at random around the z axis. I can understand why it does this, but not how to stop it!
Is there any way, either using expressions or some simple method that I have missed, to just auto-orient a camera along the x and y path, ignoring the z value (which never changes anyway)? I’ve tried Dan’s wonderful expression at https://www.motionscript.com/design-guide/auto-orient-y-only.html, but as it relates to a layer and not the camera (and I’m too dumb to translate the expression to apply to the camera), I can’t get it to work.
At worst, is there a way of revealing the orientation set by the ‘auto-orient’ function, so I can just hammer the z value back to 0 (actually I know this is impossible, but can I use an expression to replace the auto-orient function)?
This has been driving me crazy – thank you for all and any suggestions!!!
