Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Add time to a slider

  • Add time to a slider

    Posted by Tommie Retera on March 28, 2012 at 6:17 pm

    I got a slider and linked it to the opacity of 6 layers, so now they all do the same thing.
    But i want that every layer starts 1 second later with the “opacity slider”.

    where can i add 1/2/3/4/5 second(s) to start with the slider?

    thanks

    thisComp.layer("trainSlider").effect("Slider Control")("Slider")

    Dan Ebberts
    replied 14 years, 1 month ago
    2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    March 28, 2012 at 6:28 pm

    Like this:

    thisComp.layer(“trainSlider”).effect(“Slider Control”)(“Slider”).valueAtTime(time-1);

    If your layers are consecutive in the layer stack, you can probably set it up so they all use the same expression, with something like this:

    thisComp.layer(“trainSlider”).effect(“Slider Control”)(“Slider”).valueAtTime(time – (index-1));

    Dan

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