Forums > Jitter

Exportimage choice of folder?

December 12, 2012 | 7:07 pm

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?


December 12, 2012 | 7:24 pm

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!?….)


December 12, 2012 | 10:32 pm

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


December 12, 2012 | 11:00 pm
– Pasted Max Patch, click to expand. –

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


December 12, 2012 | 11:10 pm

Thank you, that works perfectly!

I have to start studying max closer indeed.


Viewing 5 posts - 1 through 5 (of 5 total)