Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Camera X and Y position matches Null X and Y position?

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

    Posted by Tim West on September 11, 2009 at 11:44 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

    Tim West replied 16 years, 10 months ago 2 Members · 3 Replies
  • 3 Replies
  • Tim West

    September 11, 2009 at 12:25 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

  • Dan Ebberts

    September 11, 2009 at 3:01 pm

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

    Dan

  • Tim West

    September 11, 2009 at 3:45 pm

    Thanks Dan – works great.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy