Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects reverse expression?

  • reverse expression?

    Posted by Phil on March 16, 2006 at 11:21 pm

    setup:
    2 layers.

    problem:
    i would like to link one layers position to the other, but make in an inverse relationship so that when i move the first layer up, the second layer moves down, etc.

    i know how to pick whip, but its the actual written expression i’m looking for. thanks soooooom muches.

    Phil replied 20 years, 3 months ago 3 Members · 4 Replies
  • 4 Replies
  • Andrew Kramer

    March 16, 2006 at 11:47 pm

    thisComp.layer(“LayerName”).transform.position*(-1)

    basically use the pick whip but multiply it by negative 1.
    then add or subract a number to get the correct offset relative to your layer.
    thisComp.layer(“LayerName”).transform.position*(-1)+720

    This way isn’t perfect because it depends where your layers start you could also add nulls to offset layer by parenting them.

    Andrew

    I’m sure there is a better way but…

  • Ryan Hill

    March 17, 2006 at 7:08 pm

    I think you might add the anchor points of the two layers, instead of just an arbitrary 720.

  • Phil

    March 17, 2006 at 8:25 pm

    thanks guys, i will give it a go 🙂

  • Phil

    March 17, 2006 at 9:22 pm

    i just need the ‘Y’ position to move opposite of it…the x & z should stay the same……

    thanks!

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