loopnotify bug?

bnjmn's icon

Hi,
I have seen some post about this but nothing that could help.

I'm playing a movie using jt.qt.movie, with the message looppoint I can play different loops.

Loop 1: a guy comes
Loop 2: a guy stand still
Loop 3: a guy goes away

I "simply" need my loop 2 to play, using a sensor when you come near the screen the guys goes away (loop 3) and stay there (so far no problem) , once you go away from the screen the guys comes back (loop 1) and then stay still (loop 2).

So I need to be able to play Loop 1 and straight after loop 2 (and keep playing loop 2).

I have use loopreport 1 and "route loopnotify" but here is my problem, by the time I receive the "loopnotify and use it to trigger my loop 2 the first frame of loop 1 is played...

I tried using timereport but it slow down my all patch (the movie is full HD and pretty big).

Is there an other (better) way of doing it?

thanks

b.

Rob Ramirez's icon

sometimes when the looping mechanisms are not cutting it, it's better to turn looping off and explicitly trigger everything yourself using the current frame (retrieved with gettime and some math), and some , and togedge objects.

here's a patch that shows some of the math, in case it helps.

Max Patch
Copy patch and select New From Clipboard in Max.

bnjmn's icon

thanks for that, I'll try this out

b.

azs's icon

You could also just save the loops and three different quictimes and trigger the same jit.qt.movie object to read the correct movie when the right conditions are met.

bnjmn's icon

Yeah but because my movie is full HD (1888px by 1062px) this would get slow and I wanted to know this if I work with more loops sopme day!

The patch above works just great!

thanks,

b.

Amir's icon

hello rob
Can you please explain how to change the patch so the trigger will be x frames before end of the video (instead of 40 as it now)
thanks
amir