Skip to main content
Participating Frequently
June 24, 2022
Question

LoopOut stop at certain time

  • June 24, 2022
  • 1 reply
  • 8291 views

I have a working loopOut and i'm trying to stop it at a certain time.

i tried:

timeToStop = 10; 
if (time > timeToStop) { 
value; 
} else { 
loopOut(); 
}

 

and also

 

if(time < 10){
loopOut()
}

else {
value
}

 

but both doesnt do the stopping trick, wel it stops right after one sequence...

What do I need to do to make this work? thanks!!

This topic has been closed for replies.

1 reply

Dan Ebberts
Community Expert
Community Expert
June 24, 2022

Both of those stop after 10 seconds for me, although it's not a very graceful stop unless the length of the loop goes evenly into 10.

Participating Frequently
June 24, 2022

Hi, dont know why, but it does stop now. But now i dont get it started at a certain time. But that will be for a new post.

 

Gracefully, no it is not. But this is a whole lot for me yet to get this working 😉 

 

Can you put me in a direction to search for a smooth stop?

Community Expert
June 25, 2022

Wow, thank you! I will have to learn a lot...

Trying to understand and to read what you did. 

Will play with it and see what magical abracadabra you wrote to me! 

Thanks, here I can work with


By far the easiest way to stop a loop animation is to go to the frame closest to where you want the animation to stop and make sure that frame matches the first frame of the animation. This is easily done using the Comp snapshot camera. Then split the layer (Shift + Ctrl/Cmnd + D) and disable the expression on the duplicate. You'll be done in about 15 seconds.