Forums > Jitter

How to send a bang after one iteration of a qt movie to stop itself

March 11, 2011 | 5:48 am

Instead of using @loop 0 , I still want the clip to be accessible without having to load it again, but I want it to stop playing (then use that bang to play other movies, all of which need this same function). I’ve tried using the bangs from qmetro through gettime then using route time and a bucket to == which then goes to togedge, but that isn’t working. It seems like a simple thing, but this is getting frustrating.

Is there an easier way? An easy way? Your help is incredibly welcome.


March 11, 2011 | 10:48 am

you can turn on loopreport in the jit.qt.movie object to get a bang when the file is done playing, check out the help file for "loopreport". I think you need this to achieve what you want. The dump of the jit.qt.movie will send a "loopnotify" message when it’s at its end, which you can use for triggering other processes.

Also, the clips you load will stay in the memory even if "loop 0" is activated, so you won’t have to load it again. To get rid of the complete clip (remove it from memory) you need to send a "dispose" message to the jit.qt.movie object


March 11, 2011 | 6:13 pm

and DON’T send the "kill" message, it’ll delete the movie file!

(fun subpatch in jit.qt.movie helpfile: "p read_other" etc.)


March 11, 2011 | 9:39 pm

so would I use a message like loopreport $1? Or would I assign it within the object @loopreport and then how would I register the loopnotify afterwards? I think this will solve it but I still can’t get it to work, I’m sort of a noob


March 12, 2011 | 1:09 am

okay, scratch that i got it. THANKS! Now I just need a gate that is switched open and shut by consecutive bangs and pass through bangs from a qmetro while open


March 12, 2011 | 2:16 am

OKAY I figured it out!! thanks all.


Viewing 6 posts - 1 through 6 (of 6 total)