help loading random movies from folder

balam's icon

Hi,
I can not seem to get random movie play ( from folder)

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

any help is great.

Ed's icon

Your patch seems to be missing something:
bpatcher: bpatcher: error loading patcher playr-patch.maxpat
bpatcher: bpatcher: error loading patcher moviefoldr-patch.maxpat

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

Try this

balam's icon

thanks
I am learning from your patch, very patch.
I am wondering if the patch can be use with a vizzie module ( movie file drop)

Ed's icon

OH, I see now -- you're using Vizzie. Yes, in my patch, you can delete the jit.qt.movie and connect the PREPEND READ object to the right inlet of PLAYR (jit.qt.movie does the same thing as PLAYR).

The trick for making your patch work is that you have to send a floating point number (one with a decimal) between 0. and 1.0 . Here's a simple fix to make your code work. I think it will work best if you change the random 100 and / 100. to the number of files or a little larger.

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

`