Newbie:How to random read movie files?
May 2, 2008 at 9:29pm
Newbie:How to random read movie files?
hi, advanced users!
I’m new to Jitter, and I have a bit of experiences in Max/Msp and PD.
I wanted to randomly read in 22 .mov clips in a folder.
Then I tried to use [umenu] but no success…
Can you guys please give me a tip on how to randomly choose .mov files inside a folder then read in to Jitter?
‘hope that I made myself clear with my poor english…
May 2, 2008 at 9:34pm
this should do the trick :
#P window setfont “Sans Serif” 9.;
May 2, 2008 at 9:56pm
thanks for the hyper quick reply.
well, it remains two problem…
first, when [random 22] object attached, and when I push the button attached to [random], it still pops up the browser window,
second, it won’t read the movie file.
when I simply click on [read 18(, it will read the file named 18, but in this way, nothing on the screen, not an error message in the max window….
May 2, 2008 at 10:01pm
there’s got to be something wrong with your patch… if you paste the bit that causing you trouble, it will be better to tell you what’s wrong.
May 2, 2008 at 10:21pm
try this patch, it works here fine. I expanded it a bit: If you mix pictures and movies the pics will take less cpu…
May 2, 2008 at 10:32pm
the attached file works fine with max media folder.
random: doesn’t understand “int”
and some movies are playing but not the ones showing in the umenu.
did I do something wrong in files naming maybe?
I’ve named 1,2,3,4 then c05, c06….c22.
I’ve placed the movie folder in Max search path as explained in the manual.
I upload the patch that I’ve did before in case.
May 2, 2008 at 10:34pm
oh, one more thing.
I did not put the .mov extension after the file name as I imagined that I’ll directly use [random] object,
but it reads in anyway when I use just [read filename( message…
May 2, 2008 at 10:47pm
D’oh… wont be able to read your patch. Just tried to start max 5 with iLok still in,… now I guess my demo will be finished :(
The error message you get sounds a bit odd, sounds like you’re sending a number to the random object instead of a bang. I can only speculate now, since I won’t be able to see your patch.
#P user jit.pwindow 281 251 82 62 0 1 0 0 1 0;
May 2, 2008 at 10:52pm
Thanks for the patch,
I think I’ve had some ideas on how to random.
but I think the problem comes from my movie files…
it’s final cut files, and since I can play those in quicktime player, I thought that it’s possible to play in jitter too.
but maybe not…I’ll try to convert my files than re-try…
May 2, 2008 at 10:55pm
some general things:
1. you have to use the middle outlet of the menu to get filenames.
if you have spaces within a filepath or filenam like mac HD/Users/your name/bla bla… you have to use quotes like: “mac HD/Users/your name/bla bla” see the object tosymbol or sprintf “%s”
2. sprintf can help you to make things clearer like
sprintf read filename%i.mov
if you get an int into the inlet it will produce: read filename1.mov, read filename2.mov, etc.
3.never use spaces in filenames or foldernames it
May 2, 2008 at 10:57pm
you have the leftmost outlet of the umenu connected, which reports the
On Sat, May 3, 2008 at 12:32 AM, djeho
May 2, 2008 at 11:12pm
I did a stupid mistake.
actually finalCut movie files are REFERENCE files, not actual movie files.
it’s normal that I always saw the same image, but not edited one…so I’ve imagined that it didn’t random…
and I didn’t know that umenu’s leftmost outlet outputs the numbers…that’s why I’ve got such an error messages.
I’m very sorry to bother you guys because of my dumb mistake.
But I’ve learned a lot more than 2 hours in front of docs from this foruming, thank you very much, really nice community.
I’ll refer to those two patches that you guys gave me to make something work out and I certainely bother you guys more with other questions!!!
thanks agian, ‘wish you guys a nice day!
You must be logged in to reply to this topic.