Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Expression for evenly spacing the value of a slider, in a series of duplicates

  • Expression for evenly spacing the value of a slider, in a series of duplicates

    Posted by Jon Smith on February 16, 2009 at 4:49 pm

    I’m looking for an expression that would allow me to evenly distribute the value of a slider effect applied to many duplicates.

    i.e. slider on the first layer is 3, the second 6, the third 9, etc…

    Ideally I would like the value between each layer to be easily adjustable without having to manually edit each layer.

    I’ve seen a couple posts that show how to evenly space layers in space, but can’t seem to translate those expressions into what I need.

    Any help is much appreciated.

    Jon Smith replied 17 years, 3 months ago 2 Members · 2 Replies
  • 2 Replies
  • Filip Vandueren

    February 16, 2009 at 5:01 pm

    You can use the index of the layers and multiply that by 3.


    firstLayer = 2; // the index of the first slider-layer

    (1 + index - firstlayer) * 3;

    If you want to change the value of 3, create another slider on a Null, and pickwhip to that, so you get something like:


    firstLayer = 2; // the index of the first slider-layer

    (1 + index - firstlayer) * thisComp.layer("Null 1").Effect("Slider Control")("Slider");

  • Jon Smith

    February 16, 2009 at 7:04 pm

    You make it look so easy. Thanks a bunch Flip.

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