Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Can you delay a layers start with a slider for use in a MoGRTs?

  • Can you delay a layers start with a slider for use in a MoGRTs?

    Posted by Henry Gaunt on June 23, 2021 at 1:50 pm

    Hello,

    I have a sequence with 7 precomps (all the animation happens within each preocomp), can you link each of these precomps to a slider so that the editor can delay the start of each precomp to time it with a voice over in premiere?

    My comp is 25fps, so if they move the slider to ’50’ it would push back the precomp 20 seconds, or 450 for 3 minutes etc..

    Thank you

    Henry Gaunt replied 5 years, 2 months ago 2 Members · 4 Replies
  • 4 Replies
  • Dan Ebberts

    June 23, 2021 at 2:53 pm

    Maybe turn on time remapping for the precomps and add a time remap expression like this:

    s = thisComp.layer("Control").effect("Delay 1")("Slider");

    delay = framesToTime(s);

    Math.max(0,valueAtTime(time-delay));

  • Henry Gaunt

    June 23, 2021 at 11:22 pm

    I do like the quiet confidence in your posts. I know when I’ve found a post with your name it will work!

    Thank you Dan, spot on.

    Is there a line I can add to turn the slider into seconds, so on the slider; 1 = second, 60 represents a minute etc..

  • Dan Ebberts

    June 24, 2021 at 4:05 am

    This should work:

    delay = thisComp.layer("Control").effect("Delay 1")("Slider");

    Math.max(0,valueAtTime(time-delay));

  • Henry Gaunt

    June 24, 2021 at 8:15 am

    <div>
    </div>

    Thank you Dan!

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