Forums > MaxMSP

automate selection of media from library on hardrive

April 24, 2009 | 12:33 pm

hi –

How do i randomly automate the opening/reading of data (images, video, music) from a file on my hardrive?

i.e i have a movie object and on command, the read function will look to a file on my hardrive with many video’s in it, and on account of some random number select a video and open it.



April 24, 2009 | 3:53 pm

Something like this will let you select a random file from a folder:

— Pasted Max Patch, click to expand. —


April 24, 2009 | 6:23 pm

here is another way of doing it, based on the same idea. but here you can see the data and choose it manually or randomly (if you hook up your random number generator to a [send selCell] object or the right inlet of the bpatcher).

happy patching Smile

April 26, 2009 | 3:19 pm

thank you both. gonna try the methods this evening and see how it goes.


April 26, 2009 | 7:00 pm

hi martin –

thank you for your patches – really appreciate it.

ive been trying to get the patch to work with video but even when i add msg’s with mp4 or mov or even jpeg it doesnt let files into the bpathcer. any ideas?



April 26, 2009 | 9:27 pm

Open the umenu inspector, Files tab, look at "File types". For the moment, umenu is filtering, and accepting only .mov files. Erase to accept all files in a folder, regardless of type.

April 27, 2009 | 6:50 am


huge thanks to everyone.


Viewing 7 posts - 1 through 7 (of 7 total)

Forums > MaxMSP