Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Expression for opposing action

  • Marc Leonard

    April 14, 2008 at 3:26 am

    *-1
    i do believe

  • Dan Ebberts

    April 14, 2008 at 6:31 pm

    There are several ways to do this, the simplest is probably to control the x positon (for example) of both layers with a slider control. One layer’s position property would get an expression like this:

    value + [thisComp.layer(“control”).effect(“Slider Control”)(“Slider”),0]

    The other would get this:

    value – [thisComp.layer(“control”).effect(“Slider Control”)(“Slider”),0]

    Dan

  • Rob Hindley

    April 15, 2008 at 12:58 am

    Thanks Dan. Works like a charm across the x axis.

    How do I get it just to move in the y axis?

    Gribble
    ::: Time flies like an arrow but fruit flies like a banana :::

  • Dan Ebberts

    April 15, 2008 at 1:26 am

    Like this:

    value + [0, thisComp.layer(“control”).effect(“Slider Control”)(“Slider”)]

    and this:

    value – [0, thisComp.layer(“control”).effect(“Slider Control”)(“Slider”)]

    Dan

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