Exportimage choice of folder?

ManaMana's icon

Hello!

I'm doing a patch where I want jit.matrix to constantly export images, and when it hits a certain amount of images it restarts the process, thus overwriting the old files.

The problem I have is that I can't specify a folder where the images created with exportimage will be located. Now, they are placed in the Max6 folder. It would work just fine if I could only get Max to save to the folder where the patcher is located.

Anyone know how I can do this?

Nikolas K's icon

you can specify the directory to save the image at the exportimage message, like so "exportimage d:\someFolder\....\image jpeg". Between the directory and the file type, is a "space"! the double "" is required instead of single.Also be careful so the directory path doesn't have spaces, or if it has, place it between double quotes, you can use the [sprintf] object to create the path, with the "symout" argument (or is it a flag!?....)

ManaMana's icon

Ah, yes, thanks. This works, however I can not choose variable names now. "d:\someFolder\....\$1 png" only creates one file called $1.png.

Nikolas K's icon
Max Patch
Copy patch and select New From Clipboard in Max.

maybe this will help.
if you change the name, is saves the image with that

ManaMana's icon

Thank you, that works perfectly!

I have to start studying max closer indeed.