Automatic file destination and random filename generator

Patrick's icon

Hello,

When you "write" a jitter video (jit.qt.record) a typical pop-up prompts you to choose a file destination and to name the file. I have been trying and trying to find a way to bypass that pop-up window by automatically generating a filename and file destination. I have attached my patch which uses objects from the jit.faces external bundle, but that part isn't the important part; you will see how I attempted to name files automatically on the right side of the patcher but it only seems to work in the print window...that is I cannot later locate those files that Max is supposedly writing.

If it is helpful, some background to this project: Once a face is detected a video will begin recording, and the video will end when no faces are detected once more. I need to save these videos as they are created to a server so that a remote computer can access them.

***I have noticed that file destinations on my PC (as opposed to an Apple) use a "\" (slash) that seems to be a forbidden character to use in a message. ???? ****

If anyone can help me figure this out, I would be very appreciative. My time is running out to finish this project!

Thank you in advance,

Patrick

Intern-Winter-Project-Face-Tracking-and-drawing.maxpat
Max Patch
pdelges's icon

You may have to look at conformpath.
Your patch seems to work on my Mac.

Patrick's icon

Thank you! That looks like it should help. And to clarify, where did the video save to on your computer? The home directory?

Thanks again,

Patrick

pdelges's icon

The files were indeed saved in my home directory, i.e. in ~ in the Unix/Mac world