Help with [exportimage] and [jit.matrix]
I am attempting to write a patch that will enable me to specify a file name then automatically add a number extension to the end of the filename when using exportimage (ie Filename1, Filename2, ..., Filename123, etc.) Here is what I have so far:
Now the problem I am having is that if I simply use [exportimage] with no arguements and manually type the file name in the windows dialog box I have no problem locating the saved image file, however, when I use [exportimage filename1 jpeg] it doesn't seem to be saving the file properly despite printing a "export filename1.jpg 1" message in the max window.
I am running Max/MSP Version 4.6.3 on Windows Vista.
Any insight into this issue would be greatly appreciated.
What do you mean by "not properly"?
Your patch works perfectly fine for me.
I took the liberty to make a few changes to your complicated "add an index"scheme... much easier with "sprintf":
Hope this was helpful.
By 'not working properly' I mean the file is not there at all. When I go look for the file that I supposedly created there is nothing there. I even did a full search of my hard drive to see if max was saving it in some obscure directory and still nothing. The file is just not there. The only way I can get it to create a file is to manually type the name in.
Your revision is much more concise, but unfortunately it is still not actually saving the file for me.
I wonder, is this some sort of bug/glitch/windows issue that is causing this?
I was afraid this might be the case. I guess I will be upgrading and hoping for the best.
I have upgraded to Max 5 and all is well. Thanks for the help and input!