jit.qt.movie and jit.qt.record

drifting's icon

Question 1:
I am trying to let jit.qt.movie RANDOMLY open one quicktime movie from a list of movies stored in one folder in the computer hard drive, which I send the READ message to jit.qt.movie

Question 2:

I am also trying to let jit.qt.record record the clip directly to a folder in the harddrive when I send the WRITE message to jit.qt.record
For example, the first time I hit WRITE message, movie 01.mov will be saved. The second time I hit WRITE message, movie 02.mov will be saved, etc.

Any ideas? Can I preset something in the inspector?

Thanks a lot.

Luke Hall's icon

Here are some objects you might want to look at. Question one: [opendialog], [folder], [umenu] and [random]. Question two: [sprintf] and [counter].

lh

drifting's icon

Thank you. I will try

drifting's icon

Again,while learning [folder] object, there is a TYPES message that I can send to [folder] to specify the types of the file to show in the [umenu] connected to [folder]. What is the message for .mov file? e.g. .txt file is TYPES TEXT, maxmsp patch file is TYPES JSON

drifting's icon

BTW. I tried TYPES MOV, TPYES QMOV, TYPES .MOV, none of these works. If I do not put an augment to TYPES, no file will show up in the [umenu]

Luke Hall's icon

The list of codes for file types is listed in max-fileformats.txt in Cycling '74 > init. You're probably looking for "MooV".

lh

drifting's icon

Thank you all. I got it working.
However, while I was using [sprintf], I tried [sprintf "Mac Harddrive:/Users/Desktop/%lb.mov"] and feed the result to message {write $1}. The quote mark " " is not showing when I feed the message. I could not figure out why? Without the quote mark " ", message {write } can not recognize the path for the file.
Any one knows how to fix this?

Jesse's icon

try [sprintf "Mac Harddrive:/Users/Desktop/%lb.mov"]

or even

[sprintf write "Mac Harddrive:/Users/Desktop/%lb.mov"]

drifting's icon

thank you. Jesse it works like a charm :)

b00kwheat's icon

Greetings,
I'm trying to do something similar but having trouble understanding how to set it up.
Here's a link to my post. Can anyone post a sample patch so I can see how this done?
It would be greatly appreciated.

regards