grabbing from database?

Jan 7, 2008 at 4:27am

grabbing from database?

Hey again. Ive been playing around with opening video and images and quicktime.

i was wondering how i would go about opening a single video from a wider selection of files in a database? maybe playing them randomly?

is it possible to use a metro to cause a bang at the end of each video to open another file randomly?

#35247
Jan 7, 2008 at 8:14pm

i took a look at the helpfile…its a little confusing as i am new to the environment and dont really understand all of the commands.

what exactly does loopreport do?
what is coll/random urn?

can anyone explain these to me?

thanks,

Dan

#119975
Jan 7, 2008 at 8:36pm

Yes, the tutorials can explain. ;) coll is a simple database object, random puts out random numbers, and urn puts out non-repeating numbers. Once you do the first few max tutorials and read the Fundamentals pdf, things will become clear. Good luck!

#119976
Jan 7, 2008 at 11:16pm

Quote: UofMaine7 wrote on Mon, 07 January 2008 05:27
—————————————————-
> Hey again. Ive been playing around with opening video and images and quicktime.
>
> i was wondering how i would go about opening a single video from a wider selection of files in a database? maybe playing them randomly?
>
> is it possible to use a metro to cause a bang at the end of each video to open another file randomly?
—————————————————-

here is a little patch to get you started,
welcome in the maze :)

#P window setfont “Sans Serif” 9.;
#P number 268 444 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 125 174 60 196617 loadmess 1;
#P newex 135 295 68 196617 prepend read;
#P button 245 369 33 0;
#P newex 245 344 82 196617 route loopnotify;
#P newex 245 419 43 196617 random;
#P number 382 267 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 382 242 72 196617 route populate;
#P message 220 185 33 196617 clear;
#P button 292 102 15 0;
#P newex 292 134 93 196617 opendialog folder;
#P newex 292 161 82 196617 prepend prefix;
#P user ubumenu 292 220 100 196617 0 1 1 0;
#X prefix_set 2 1 mud:/Users/karlo/Documents/!MAX/media/video/schwarzie3/shooter/ 0;
#P toggle 125 210 15 0;
#P user jit.pwindow 124 379 82 62 0 1 0 0 1 0;
#P newex 125 323 130 196617 jit.qt.movie @loopreport 1;
#P newex 125 234 52 196617 metro 33;
#P comment 311 95 197 196617 1- choose a folder filed with movies;
#P comment 312 109 238 196617 (this folder needs to be in your Max searchpath );
#P comment 422 268 136 196617 number of files in the folder;
#P window linecount 2;
#P comment 282 374 100 196617 2-bang once to start the process;
#P window linecount 1;
#P comment 31 38 304 196617 this patch plays movies chosen randomly from a folder.;
#P window linecount 2;
#P comment 32 52 532 196617 each movie outputs a bang (given by the “loopreport” attribute) at its end , this bang triggers the [random] object to output a number which will be used to pick a movie from the [ubumenu];
#P connect 17 0 22 0;
#P fasten 17 0 10 0 250 468 489 468 489 205 297 205;
#P fasten 19 0 17 0 250 401 250 401;
#P fasten 16 0 17 1 387 410 283 410;
#P connect 21 0 9 0;
#P connect 11 0 10 0;
#P connect 9 0 6 0;
#P connect 13 0 12 0;
#P connect 12 0 11 0;
#P connect 14 0 10 0;
#P connect 15 0 16 0;
#P connect 10 2 15 0;
#P connect 6 0 7 0;
#P connect 7 0 8 0;
#P connect 7 1 18 0;
#P connect 18 0 19 0;
#P fasten 10 1 20 0 342 265 140 265;
#P connect 20 0 7 0;
#P window clipboard copycount 23;

#119977
Jan 8, 2008 at 1:30am

wow….you are the man.

Ive been researching/testing/reading etc. *literally* ALL DAY/Evening/night. And you seem to whip that up in a moment. Thanks so much…ive been reading a lot of documents that i hadnt known about previously and following up on all of the *read also* segments of everything.

You’re not kidding when you mention The Maze.

Thanks again,

Dan

#119978
Jan 8, 2008 at 10:31am

you are welcome.
this kind of thing comes up pretty often on the forum,
here is another way searching the forum suggested by somebody ( whom i dont recall the name, apologies to the author ) which can be pretty helpfull :

for instance a search on the word “folder” :

folder site:synthesisters.com

folder site:cycling74.com/forums

learning max will take some time so read the tutorials and hang in there :)

Quote: UofMaine7 wrote on Tue, 08 January 2008 02:30
—————————————————-
> wow….you are the man.
>
> Ive been researching/testing/reading etc. *literally* ALL DAY/Evening/night. And you seem to whip that up in a moment. Thanks so much…ive been reading a lot of documents that i hadnt known about previously and following up on all of the *read also* segments of everything.
>
> You’re not kidding when you mention The Maze.
>
> Thanks again,
>
> Dan
—————————————————-

#119979

You must be logged in to reply to this topic.