Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions X Position offset

  • Posted by Richard Lyons on July 7, 2010 at 10:46 pm

    I have a null layer with slider control that I need to control the X position of 2 layers.

    Need to get the expression working that as I move the slider value up, the 2 layers move apart from each other in X pos only, then back down with the slider they move together.

    Can anyone steer me in the right direction?!

    Many thanks in advance…

    Richard Lyons replied 16 years ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    July 7, 2010 at 11:21 pm

    Probably something like this for one:

    s = thisComp.layer(“Null 1”).effect(“Slider Control”)(“Slider”);
    value + s

    and this for the other:

    s = thisComp.layer(“Null 1”).effect(“Slider Control”)(“Slider”);
    value – s

    Dan

  • Richard Lyons

    July 7, 2010 at 11:48 pm

    Thanks Dan – works great – you are the man!

    Cheers…

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