send a bang at specific point in a jit.movie?

May 1, 2006 at 6:29pm

send a bang at specific point in a jit.movie?

I want to trigger different events at different points in a movie. I’m also trying to send a bang that will start movie X (a movie selected based on other factors in the patch) at the end of movie A.

I’ve tried sending out the frame count and selecting a certain frame number that would send the bang, but for some reason it doesn’t work (I can post the patch if needed).

I have a hunch this is much easier than I have made it out in my head. If you need more info, let me know. Any suggestions are appreciated.

#25738
May 1, 2006 at 7:48pm

>I’ve tried sending out the frame count and selecting a certain >frame number that would send the bang, but for some reason it >doesn’t work (I can post the patch if needed).

maybe you should send your patch so we can see where you are stuck , this is a pretty basic issue.

did you get a chance to check Jitter tutorial 04 “04jControllingMoviePlayback.pat” ? or the “loop_detect.pat” in the jitter examples folder ? this could get you started . jump and frame are the messages to be sent to the jit.qt.movie object to go to specific frames of your selected movies…
i am not sure if i can b more of any help right now …

best,
karl

#76133
May 2, 2006 at 1:32am

Karl,

One thing I’m trying to avoid is the movie looping. For example, how can I have the movie reach the end and then send a bang that would turn off the metro banging the movie.

Here’s an example of one of my tests that does not work. I modified the “04jControllingMoviePlayback.pat” patch so theoretically the movie would reach frame 12, and throw a toggle. But it doesn’t work. Not sure why. If I could accomplish something similar that would be a step in the direction I’m headed!

Thanks…

#P toggle 286 459 15 0;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 286 430 52 196617 select 12;
#P window setfont “Fixedwidth Serif” 10.;
#P message 8 130 50 1441802 gettime;
#P newex 300 289 38 1441802 sel 1;
#P window setfont Times 10.;
#P comment 262 196 321 1310730 Gets the timing , rate , and volume information of the movie clip when it loads;
#P window setfont “Fixedwidth Serif” 10.;
#P message 476 360 50 1441802 size $1;
#P window setfont Times 10.;
#P comment 454 269 108 1310730 Movie timescale and fps.;
#P window setfont “Fixedwidth Serif” 10.;
#P message 286 385 43 1441802 set $1;
#P flonum 418 268 35 10 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 374 268 35 10 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont Times 10.;
#P comment 225 325 59 1310730 Current time;
#P comment 220 408 63 1310730 Current frame;
#P window setfont “Fixedwidth Serif” 10.;
#P number 286 408 35 10 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 286 360 27 1441802 /;
#P number 286 324 51 10 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont Times 10.;
#P comment 333 385 58 1310730 Total frames;
#P comment 341 325 50 1310730 Total time;
#P comment 471 302 142 1310730 Timescale/Fps=time values/frame;
#P window setfont “Fixedwidth Serif” 10.;
#P number 396 385 35 10 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 396 360 27 1441802 /;
#P number 396 325 35 10 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 438 325 35 10 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 438 302 32 1441802 / 1.;
#P newex 242 266 68 1441802 unpack s 0;
#P newex 242 240 369 1441802 route read time duration timescale fps rate vol looppoints;
#P message 242 178 308 1441802 getfps , gettimescale , getduration , getrate , getvol;
#P user jit.pwindow 54 235 162 122 0 1 0 0 1 0;
#P window setfont Times 10.;
#P comment 24 39 29 1310730 Open;
#P comment 70 86 26 1310730 Play;
#P window setfont “Fixedwidth Serif” 10.;
#P message 169 61 43 1441802 time 0;
#P message 152 61 14 1441802 1;
#P button 152 39 15 0;
#P newex 55 105 55 1441802 metro 40;
#P toggle 55 85 15 0;
#P message 22 53 113 1441802 read crashtest.mov;
#P newex 55 209 128 1441802 jit.qt.movie 320 240;
#B color 5;
#P window setfont Times 10.;
#P comment 167 39 44 1310730 Restart;
#P user panel 49 202 174 166;
#X brgb 127 255 255;
#X frgb 0 0 0;
#X border 0;
#X rounded 0;
#X shadow 0;
#X done;
#P user panel 18 35 121 42;
#X brgb 255 127 255;
#X frgb 0 0 0;
#X border 0;
#X rounded 0;
#X shadow 0;
#X done;
#P user panel 2 77 128 74;
#X brgb 255 255 127;
#X frgb 0 0 0;
#X border 0;
#X rounded 0;
#X shadow 0;
#X done;
#P connect 38 0 39 0;
#P connect 27 0 38 0;
#P connect 19 0 20 0;
#P fasten 19 0 34 0 401 347 481 347;
#P fasten 31 0 17 1 423 286 465 286;
#P connect 17 0 18 0;
#P fasten 30 0 17 0 379 292 443 292;
#P connect 15 4 31 0;
#P fasten 18 0 26 1 443 354 308 354;
#P fasten 18 0 20 1 443 354 418 354;
#P connect 20 0 21 0;
#P fasten 15 2 19 0 335 279 352 279 352 312 401 312;
#P connect 15 3 30 0;
#P connect 16 1 36 0;
#P connect 32 0 27 0;
#P connect 26 0 32 0;
#P connect 25 0 26 0;
#P fasten 15 1 25 0 291 262 343 262 343 318 291 318;
#P connect 15 0 16 0;
#P fasten 4 1 15 0 178 233 247 233;
#P fasten 36 0 14 0 305 311 234 311 234 174 247 174;
#P fasten 8 0 10 0 157 57 174 57;
#P connect 8 0 9 0;
#P connect 4 0 13 0;
#P fasten 5 0 4 0 27 124 5 124 5 158 60 158;
#P connect 37 0 4 0;
#P fasten 10 0 4 0 174 158 60 158;
#P fasten 14 0 4 0 247 198 60 198;
#P connect 7 0 37 0;
#P connect 7 0 4 0;
#P connect 6 0 7 0;
#P fasten 9 0 6 0 157 81 60 81;
#P window clipboard copycount 40;

#76134
May 2, 2006 at 4:25am

Hi,

Just wanted to quickly add that I did find the “loopreport 1″ “loopnotify” messages and that is helping a great deal.

However, I am still looking to trigger events when the video reaches specific frames. For example, send a bang when the video reaches frame 10. Again, any help is appreciated.

#76135
May 17, 2006 at 6:34am

Still nothing on this. I’ve searched the forums, asked friends. About to give up on it, but I’ll try one more time…

Is there no way to get a bang at a certain frame in a jit.qt.movie object?

I’m trying to get a bang say 10 frames or even a few seconds before a movie ends so I can cue other actions. There has to be a way to do this, no?

Thanks in advance…

#76136
May 17, 2006 at 7:03am

Try this:
#P window setfont “Sans Serif” 9.;
#P flonum 442 314 68 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 442 240 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 467 264 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 253 350 30 196617 !- 1.;
#P user jit.pwindow 141 405 82 62 0 1 0 0 1 0;
#P newex 142 372 121 196617 jit.op @op pass * * pass;
#P newex 396 374 73 196617 print TRIGGER;
#P newex 396 337 32 196617 sel 1;
#P newex 396 312 33 196617 >= 1.;
#P newex 442 285 35 196617 * 0.9;
#P number 396 240 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 350 240 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 304 240 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P user jit.pwindow 141 240 82 62 0 1 0 0 1 0;
#P newex 488 240 58 196617 print LOOP;
#P newex 142 144 59 196617 t gettime b;
#P newex 304 200 242 196617 route framecount timescale time duration oopnotify;
#P flonum 341 131 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 341 152 42 196617 rate $1;
#P message 35 73 224 196617 read , getframecount , gettimescale ,
getduration;
#P message 275 152 27 196617 stop;
#P message 241 152 31 196617 start;
#P flonum 184 103 35 9 0.5 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 142 103 15 0;
#P newex 142 123 52 196617 metro 30;
#P message 305 152 31 196617 clear;
#P newex 142 178 172 196617 jit.qt.movie 320 240 @loopreport 1;
#P window linecount 2;
#P comment 161 198 118 196617 percent throught the clip you want to trigger;
#P connect 4 0 3 0;
#P connect 3 0 12 0;
#P fasten 12 1 1 0 196 167 147 167;
#P connect 12 0 1 0;
#P fasten 9 0 1 0 346 173 147 173;
#P fasten 8 0 1 0 40 173 147 173;
#P fasten 7 0 1 0 280 173 147 173;
#P fasten 6 0 1 0 246 173 147 173;
#P fasten 2 0 1 0 310 173 147 173;
#P connect 1 0 14 0;
#P connect 14 0 22 0;
#P connect 22 0 23 0;
#P connect 5 0 3 1;
#P fasten 19 0 24 0 401 334 258 334;
#P connect 24 0 22 1;
#P connect 1 1 11 0;
#P connect 11 0 15 0;
#P connect 10 0 9 0;
#P connect 11 1 16 0;
#P connect 11 2 17 0;
#P connect 17 0 19 0;
#P connect 19 0 20 0;
#P connect 20 0 21 0;
#P fasten 18 0 19 1 447 308 424 308;
#P connect 11 3 26 0;
#P connect 26 0 18 0;
#P connect 18 0 27 0;
#P connect 25 0 18 1;
#P fasten 11 4 13 0 493 228 493 228;
#P window clipboard copycount 28;

#76137

You must be logged in to reply to this topic.