Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Position of two layers linked – but y value on second layer locked

  • Position of two layers linked – but y value on second layer locked

    Posted by Artur Jurzyk on July 27, 2015 at 12:20 pm

    Hi
    I guess I have very simple problem.. but I couldn’t goggle it

    There are two layers. One is an object, a second one is a shadow of this object.

    “object” layer have wiggler on x,y and I would like to link “shadow” layer to the position of an “object” layer but only in “X” axis or in other words link position but lock/fix Y value

    thank you! 🙂

    Artur Jurzyk replied 11 years, 1 month ago 2 Members · 3 Replies
  • 3 Replies
  • Artur Jurzyk

    July 27, 2015 at 2:57 pm

    OK, so I separated x,y values on timeline (right click on position and then separate dimensions!!!) so maybe it will be helpful for someone.
    for me it is new little coll feature I learned today 😉

    anyway I’m sure you can lock value by expression, and I,m very curious how it goes

  • Dan Ebberts

    July 27, 2015 at 3:51 pm

    I think this is what you’re after:

    x = thisComp.layer(“object”).transform.position[0];
    [x,value[1]]

    Dan

  • Artur Jurzyk

    July 27, 2015 at 4:17 pm

    yes thank you! 🙂

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