FORUMS: list search recent posts

Camera and 3d layer positioning

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Eduardo Cruz
Camera and 3d layer positioning
on May 4, 2012 at 4:09:22 am

Hi, i'm a total newb with expressions. I'm doing a sky replacement but i want the sky to stay the same distance away from the camera through out the timeline. the reason i made the sky a 3d layer is because there is some camera swivel and panning that doesn't look natural unless the sky is a 3d layer. I was thinking an expression that takes the z position of the camera and the z position of the layer, figures out the difference and maintains it regardless of where i move the camera. Parenting isn't giving me the effect i want. thanks


Return to posts index

Eduardo Cruz
Re: Camera and 3d layer positioning
on May 4, 2012 at 6:16:49 am

well, i found a solution that works pretty well, any other ways to do this?

NewZ=this_comp.layer("Camera 1");
[position[0],position[1],NewZ.position[2]+"the initial difference"];


Return to posts index

Jeff Bobbington
Re: Camera and 3d layer positioning
on May 4, 2012 at 10:39:19 am

I would have thought separating the dimensions of positions of each, then parenting the Z axis of the sky to the Z axis of the camera would have worked.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]