using an expression, is there a way to auto orient ONLY a layers Y-Rotation to the camera?
basically I have a camera drifting through a maze of bottles. As the camera moves through the bottles, the layers are flat obviously, I would like them to stay turned to the camera, but NOT tilt down (x-rotation)
can an expression handle this?
auto orient expression?
-
- Posts: 320
- Joined: June 26th, 2004, 10:01 am
- Location: Folsom, CA
- Contact:
This should do it:
delta = toWorld(anchorPoint) - thisComp.activeCamera.toWorld([0,0,0]);
radiansToDegrees(Math.atan2(delta[0],delta[2]))
More info here:
http://www.motionscript.com/design-guid ... -only.html
Dan
delta = toWorld(anchorPoint) - thisComp.activeCamera.toWorld([0,0,0]);
radiansToDegrees(Math.atan2(delta[0],delta[2]))
More info here:
http://www.motionscript.com/design-guid ... -only.html
Dan