Skip to main content
Known Participant
February 23, 2023
Question

Pause video layer with an expression for x seconds.

  • February 23, 2023
  • 2 replies
  • 1569 views

Hi,

 

Any help would be greatly appreciated.

 

I would like to Pause video layer with an expression for x seconds. after x seconds it should play as normal. The video could be in a comp if that helps. I would like to trigger it either on the video layer or from elsewhere in the project but it must be done with an AE expression

 

Thank you!

 

Nick

This topic has been closed for replies.

2 replies

Participant
May 4, 2024

well Nick.. I've just launched a script that will do exactly what you are asking for, here's a quick tutorial for how you can use PlayPauseRepeat:

https://youtu.be/1lmLQwsyvyY?si=lF99IXQ3d1eUP4Ct

the link to download it is in the video discriptipon!

hope you like it! and if you do, please support by sharing, reviewing or donatiing.

thanks!
Awn

Dan Ebberts
Community Expert
Community Expert
February 23, 2023

Not sure how close this is to what you're after, but you could enable time remapping on your video layer and apply this time remapping expression, which will pause for 1 second at each layer marker:

delay = 1; // delay 1 sec at each marker
m = marker;
t = time;
if (m.numKeys > 0){
  n = m.nearestKey(time).index;
  if (time < m.key(n).time) n--;
  if (n > 0){
    d = (n-1)*delay + linear(time - m.key(n).time,0,delay,0,delay);
    t -= d;
  }
}
t
Nick5FF2Author
Known Participant
February 23, 2023

Thank you! I will try this.