Exportimage choice of folder?

Dec 12, 2012 at 7:07pm

Exportimage choice of folder?

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?

#65642
Dec 12, 2012 at 7:24pm

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

#236446
Dec 12, 2012 at 10:32pm

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

#236447
Dec 12, 2012 at 11:00pm
– Pasted Max Patch, click to expand. –

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

#236448
Dec 12, 2012 at 11:10pm

Thank you, that works perfectly!

I have to start studying max closer indeed.

#236449

You must be logged in to reply to this topic.