select random images in folder without duplicates

Aug 28, 2010 at 7:14pm

select random images in folder without duplicates

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
#52026
Aug 28, 2010 at 7:33pm

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.

#186795
Aug 31, 2010 at 4:54pm

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

#186796

You must be logged in to reply to this topic.