Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity › Forums › Adobe After Effects Expressions › opposing directions

  • opposing directions

    Posted by Dale Hayward on September 29, 2009 at 7:00 pm

    i know this is such a beginner question about expressions, but i am. my brain can’t get it

    i want to have one slider that when i increase the number one layer goes right & the other goes left. So thus the slider number will tell me how many pixels are in-between the two layers.

    simple i know, please help

    d-ale

    blog: https://ostrichindustries.blogspot.com/

    Dan Ebberts replied 17 years ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    September 29, 2009 at 8:50 pm

    If you have your slider on a layer named “control”, one expression would look like this:

    s = thisComp.layer(“control”).effect(“Slider Control”)(“Slider”)/2;
    value + [s,0]

    and the other would look like this:

    s = thisComp.layer(“control”).effect(“Slider Control”)(“Slider”)/2;
    value – [s,0]

    Dan

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