Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions attached a Layer only with x and y

  • attached a Layer only with x and y

    Posted by Gunnar Kordestani on September 1, 2009 at 10:27 am

    sorry guys, I am messed up with some simple stuff…

    want to attach a ‘layer 1’ x and y position to x and y position of a ‘layer 2’ in my comp. The z position should be as I adjust manually in my ‘layer 1’

    x=thisComp.layer("layer 2").transform.position[0];
    y=thisComp.layer("layer 2").transform.position[1];
    z=transform.position[2];
    [x;y;z]

    is what I have, but my z=transform.position[2] seems to be wrong.

    cant figure it out. Pretty sure u guys are laughing about the simplicity… let’s laugh together … let me know.

    thx …gunnar

    Dan Ebberts replied 16 years, 11 months ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    September 1, 2009 at 12:55 pm

    Try changing the last line to [x,y,z].

    Dan

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