How to load image into jit.window after movie?
I’m playing a grid of movies through a jit.glue, and wondering if there’s a way to have each section of the grid display an image when the movie has finished playing?
In other words, I’d like the movie to not loop, and when finished go back to an image. The image could already be there, and in the background, and the movie could simply disappear on play complete.
Is this possible?
send a ‘loopreport 1′ to the jit.qt.movie
so it will tell you when the movie has ended
ofcourse you’ll have turn off looping first
when its done just load an other movie/image in it .
no need to have in the background already , unless you’re doing it with videoplanes in opengl which goes a bit faster…
Thanks for the tip. How do I do an event (in this case "read myfile.jpg") when a given event has happened (in my case, the movie has finished).
Thanks for any advice.
use route or select
I’m sorry but I still can’t figure this out. Would it be possible to elaborate? I’m trying to use this patch for an event that starts in 2 hours. Currently I’m pressing spacebar to load the graphic, which wouldn’t be the end of the world, but it sure would be nice to be on autopilot.
I’m sending my jit.qt.movie object a "loopreport 1" message, but as far as I can tell its either having no effect, or I can’t see the effect.
I looked at the documentation for route and select but I can’t see how to apply it here. Any possibility of elaborating?
set loopreport 1 in the jit.qt.movie Inspector, freeze the attribute (Max 5 only), then when it finishes playing, you’ll get a message out the right outlet that says "loopnotify". send this to [route loopnotify] and it’ll become a bang, which can do anything you want: in this case, load the image file.
if you’re on Max 4, you can set the loopreport attribute like this:
jit.qt.movie 320 240 @loopreport 1
(with whatever dimensions you want of course)
hopefully you’ll have a bit more time to look into this stuff without a deadline. lots of info in the tutorials and help files, but you need time to experiment and work through the ins and outs, make tons of mistakes, but learn a little with each one.