Switching between 5 videos at random

asmarquis's icon

OK, so I'm working on this patch where i want 4 videos played in random sequence one after the other. Each time the patch is opened the sequence should be different, once one video ends it should trigger the next to be played with no repeats. So far i have the [urn] object set up to choose between random numbers and I have that connected to the [umenu] object. However I can't figure out how to load my videos into [umenu] can anyone help?

below is a screenshot of my batch so far any suggestions at all are welcome.

363.Screen_shot_2010-04-12_at_5.09.37_PM.png
png
Curly's icon

send a 'path' message to 'thispatcher' to populate the umenu with your movies. I've attached an example which will read a folder called movies, if the folder is in the same location as your patch. nb, you will have to change this if you want to make a standalone.

364.Picture_7.png
png
asmarquis's icon

Still having trouble loading movies into [umenu] i've put them into the menu items but I can't get the actual movies to play in the quicktime window. Here is a screen shot of my patch. my movies in the same folder as my patch which is entitled "movies". the [urn] object seems to be working well enough in switching the videos but I can't get them to actually play the videos.

365.Screen_shot_2010-04-12_at_9.00.54_PM.png
png
asmarquis's icon

suggestions anyone?

Léopold Frey's icon

Connect the second outlet of the umenu to the [prepend read], the first one will only give you the number of the selected item in the menu

léo

asmarquis's icon

ok, so i've got this to do just about everything i want it to except actually play my movies. i have a list of movies in the menu items information part of [umenu] my movies are located in a documents folder entitled movies. It is cycling through the movies at random each time a bang is sent until all movies are played but i won't actually play the movies in the viewer.

Léopold Frey's icon

post your patch
in edit mode, select all, edit menu, copy compressed, paste here

leo

dimbels's icon

hey asmarquis, this is what i am currently working with.
could it be that you just forgot the metro object ?
I suppose its similar to your issue:

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

asmarquis's icon

dimbels, could you post this as a screen shot? for some reason all i see is a bunch of code, no maxx patch

asmarquis's icon
Max Patch
Copy patch and select New From Clipboard in Max.
dimbels's icon

here you go.

376.Untitled2.png
png
Léopold Frey's icon
Max Patch
Copy patch and select New From Clipboard in Max.
asmarquis's icon

How do i use that in my own patch? I just see a bunch of code. where do i plug it in?

Léopold Frey's icon

copy between ----begin---- & ----end----- (included)

> max > file menu > new from clipboard

leo

asmarquis's icon

can't open it. not sure why, running demo version of maxx and won't let me open this code in maxx. anyway you could post a screen shot of this?

Also wanted to say thanks for all the help from everyone so far. As a newbie and someone not at all familiar with coding or maxx the help provided by everyone on this site have help me tremendously

Léopold Frey's icon
asmarquis's icon

Maxx won't even let me open new patch from clipboard. I don't get it. i can open a new patcher window or new from template but specifically clipboard will not open

Léopold Frey's icon

Here's a screenshot, I don't see any reason why copy/pasting would not work

393.Image_1.jpg
jpg
Rob Ramirez's icon

make sure you have the latest version of max installed (5.1.3 i think)

if so, try reinstalling and trashing your preferences.

if no luck, contact support@cycling74.com

asmarquis's icon

thanks rob. got it to work. apparently i wasn't copying the entire code and just didn't notice it