Skip to main content
S_ A
Inspiring
August 26, 2024
Answered

How to write expression in such case- 8

  • August 26, 2024
  • 1 reply
  • 543 views

Hi,

My comp is 4000x4000, 30 fps. at 12.26 time  my frame is 386.

so I created one light flickering animation with 3 frames, first and last color same, middle is another color. gap between them is 10 frames.

 

so I want the light  flickering loop animation to stop exactly at 12.26 (time) frame (386).

after some study I came to learn that  --- loopOutDuration(type = "cycle", duration = 0)--- this is the expression I have to use in such case. and in '0' I have to write the time I want the loop animation to stop. But if I put '12.26' in '0' flickering stops. nothing happens.

 

if '0' remains flickering going on till the end.

 

what am doing wrong? Please guide me. :'(

 

 

 

 

 

This topic has been closed for replies.
Correct answer Dan Ebberts

Something like this should do what you want (I think):

endtime = 12 + framesToTime(26);
if (time < endtime)
  loopOut()
else
  valueAtTime(endtime)

1 reply

Dan Ebberts
Community Expert
Dan EbbertsCommunity ExpertCorrect answer
Community Expert
August 26, 2024

Something like this should do what you want (I think):

endtime = 12 + framesToTime(26);
if (time < endtime)
  loopOut()
else
  valueAtTime(endtime)
S_ A
S_ AAuthor
Inspiring
August 26, 2024

😮 😮 😮 😮 😮 😮

 

I am sooo happy. Thank you so much. It stops there exactly there where I wanted it to be. Thank you. 😮