Hi, I am making a save as + button. I have it working actually, but it has some issues I dont know how to fix. This is what I have so far:
//ZBRUSH MACRO - Recorded in ZBrush version 3.5
[IButton,???,"Increment File Save",
[IShowActions,0]
[IConfig,3.5]
[VarSet,activeSubTool,[IgetTitle, Tool:Current Tool]]
[FileNameSetNext,[FileNameAdvance,[StrMerge,activeSubTool,.ztl]]][IPress,Tool:Save As]
[Note, "Saved!"]
]
This works in saving the file and increments it properly, however it isnt always in the correct file location. It takes the last used file location and saves it in that folder, I just dont know how to set the file location to where the active tool is. Also, this script will write over an existing file without asking if I open an earlier version of a ztool. How would I get it to check if there is already a file, and ask to overwrite, or skip it and save with the next increment?
Lastly, the note at the end doesnt really mean anything other than to say the script is finished, how would I get it to check if the file is actually successfully written, or, would zbrush give a save error itself and I dont need to check it in the script?
Thank you for all your help, let me know if I need to clarify anything.