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

Mar 11, 2011 at 5:48am

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

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.

#55458
Mar 11, 2011 at 10:48am

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

#199568
Mar 11, 2011 at 6:13pm

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

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

#199569
Mar 11, 2011 at 9:39pm

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

#199570
Mar 12, 2011 at 1:09am

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

#199571
Mar 12, 2011 at 2:16am

OKAY I figured it out!! thanks all.

#199572

You must be logged in to reply to this topic.