Movie Loader slowing down

zulli114's picture

I saw this posting on the movie loader and works pretty well.

great tutorial on movie loader. http://vjkungfu.com/archive/new-movie-loader-in-quartz-composer-for-snow...

They mention about changing the rate to slow it down.
Does anyone know where in the javascript I could do that instead of jumping frames. Always giving credit.

function (__number position, __boolean reset) main (__number inputNumber[8], __number duration) { var result = new Object(); var slice = duration/8;

if(inputNumber[0]>0){ result.position = slice*1-slice; result.reset = true; } else

if(inputNumber[1]>0){ result.position = slice*2-slice; result.reset = true; } else

if(inputNumber[2]>0){ result.position = slice*3-slice; result.reset = true; } else

if(inputNumber[3]>0){ result.position = slice*4-slice; result.reset = true; } else

if(inputNumber[4]>0){ result.position = slice*5-slice; result.reset = true; } else

if(inputNumber[5]>0){ result.position = slice*6-slice; result.reset = true; } else

if(inputNumber[6]>0){ result.position = slice*7-slice; result.reset = true; } else

if(inputNumber[7]>0){ result.position = slice*8-slice; result.reset = true; } else{ result.reset=false; }

return result; }

dust's picture
Re: Movie Loader slowing down

the rate is applied to the movie import patch. you can use the rate to slow down the movie or speed it up. the rate also controls the play position. a value of 1 makes the movie patch play forward at original speed and a value of negative 1 will rewind the movie. with that stated if you apply a mouse x to the movie import patch's rate then you will be able to scrub back and forth by moving your mouse. qc's -1 to 1 unit screen dimensions play well with rate. see patch....

PreviewAttachmentSize
scrub.qtz2.73 KB

zulli114's picture
Re: Movie Loader slowing down

sweet, love the script you have been a huge help. Shout outs to you everywhere. Do you think with this script its possible with a click on the mouse button to slow down the movie and stay slow and then every click with another button (maybe right) speeds it up.

I tried to switch and code on button clicks but it seemed to freeze when I programmed left and right buttons. I had to hold them instead of each click on the button gets faster is what I am trying to shoot for. Any ideas

zulli114's picture
Re: Movie Loader slowing down

I was playing with it, still freezes with holding down the click. Is there a way to click and release and stay at that slow or faster speed?

zulli114's picture
Re: Movie Loader slowing down

Is it possible to to use a button click (once) each time to change the speed up and down

dust's picture
Re: Movie Loader slowing down

here push up arrow to increment the rate and down arrow to decrement the rate. ;)

PreviewAttachmentSize
nudge_rate.qtz36.2 KB