Forums > MaxMSP

select random images in folder without duplicates

August 28, 2010 | 7:14 pm

i have a folder of a bunch of images.
i have a good patch that is playing all the images in order:

http://music.arts.uci.edu/dobrian/COSMOS2005/slideshow.txt

but I want to show them all randomly without duplicates.

the object Urn seems to be a good object to select numbers. can i translate this to select images in a folder??
other ideas?
thanks!

Attachments:
  1. slideshow1.maxpat

August 28, 2010 | 7:33 pm

I didn’t look at your patch but yeah, urn is probably what you want to use. I might populate a menu (which doesn’t have to be shown), with the items in the folder, get the count of how many items there are, and set urn’s max with that. Then each new number out of urn selects a new name from the menu. Folder/coll could be used too.


August 31, 2010 | 4:54 pm

Chris is right. See Example X on this page (which works for either movies or still images).

http://music.arts.uci.edu/dobrian/IAP2004/JitterExamples.htm


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