Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
ADOBE AFTER EFFECTS: HomeForumBasicsExpressionsTutorialsPodcastsMotion GraphicsTrainingCinema 4DFAQ

Camera X and Y position matches Null X and Y position?

Cow Forums : Adobe After Effects Expressions

<< PREVIOUS THREAD   •   VIEW ALL THREADS   •   PRINT   •   NEXT THREAD >>
Camera X and Y position matches Null X and Y position?
by Tim West on Sep 11, 2009 at 11:44:04 am

Hi,

I'm trying to build a composition in which a camera's X and Y coordinates correspond with the X and Y coordinates of a null object - e.g. a camera & target set up similar to the target camera in C4D.

Can anyone help me with these expressions (or is there a better way to achieve this?)

Thanks,

Tim

Respond to this post   •   Return to posts index

Re: Camera X and Y position matches Null X and Y position?
by Tim West on Sep 11, 2009 at 12:25:11 pm

UPDATE:

I've managed to create exactly what I need EXCEPT one thing ....

I have my 3D Null layer's ('control') position controlling the anchor point of my 3D content layer ('Map').
However - I only want the Null layers X and Y (not Z) values to be mirrored by the content layer (so the content layer's Z position remains at 0 at all times.

Can anyone show me how to specifically target position X, Y or Z values of 3D layers?

Thanks for your time,

T

thisComp.layer("control").transform.position



Respond to this post   •   Return to posts index

Re: Camera X and Y position matches Null X and Y position?
by Dan Ebberts on Sep 11, 2009 at 3:01:26 pm

p = thisComp.layer("control").transform.position;
[p[0],p[1],value[2]]


Dan




Respond to this post   •   Return to posts index


Re: Camera X and Y position matches Null X and Y position?
by Tim West on Sep 11, 2009 at 3:45:29 pm

Thanks Dan - works great.



Respond to this post   •   Return to posts index

<< PREVIOUS THREAD   •   VIEW ALL THREADS   •   PRINT   •   NEXT THREAD >>


FORUMSTUTORIALSMAGAZINETRAININGVIDEOS - REELSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]