-
Auto Orient Y-Only Issues
I know Its been asked before but im having issues and havent yet found a solution. I’ve made a carousel style animation (please see video) and used auto Orient to get the layers to always face the camera, which they do. I wanted to isolate it to just the Y axis so I came across Dan Ebbert’s expression here*:
https://www.motionscript.com/design-guide/auto-orient-y-only.htmlwhich looked perfect but for some reason I haven’t been able to get it to work (see end portion of video). The aim is to have the two layers align with the focus plane of the camera as apposed to facing the camera itself.
Any ideas what I might be doing wrong?
The “product” images are made up of a front and back 3D layer (the BACK is parented to the FRONT) and have been given the ‘invisible when not facing the cam’ treatment ** and are parented to a rotating 3d null. Eventually these will flip to reveal the back of the product.
any help would be greatly appreciated
thanks
* delta = toWorld(anchorPoint) - thisComp.activeCamera.toWorld([0,0,0]);
radiansToDegrees(Math.atan2(delta[0],delta[2]))** if (toCompVec([0, 0, 1])[2] > 0 ) value else 0