hi
i was wondering how i can make a button that saves a max file as a previous version
i found the help but could not get the code to work
max file save [SaveAsVersion:2010]
or saveMaxFile etc. tried lots of things but never worked
what should i do?
thanks
By
Comments (8)
Comment policy
Hey Ian
maybe something like this...
Hi Anubis.
Nice one, but if file is not saved before you run this code then
First you need to check if MaxFileName != ""
Yes, I know :)
I think that Ian know this as well and w'd not try to increment unsaved scene, but you're right that the final code need to test for untitled scene.
Also I think that I s'd correct myself (in above code), as there a lot of time gone from my last work with Max :) and I presume that my untested code have some more logical mistakes, especially at the line where I extract the trailing numbers :)
So, if am not wrong, this s'd be more correct:
I fully understand you. Beside of that I also agree that every tester even try to detect small errors in the code and optimize the code for yourself.For me this is the most interesting part.
BTW I'm glad you're coming back on the scene. :)
thank barigazy!
do you know how to change this
newFile = MaxFilePath + MaxFileName
saveMaxFile newFile saveAsVersion:2010 clearNeedSaveFlag:false useNewFile:false quiet:true
to use max saveplus command?
max saveplus saves incrementally, but i cannot get it to work with this saveAsVersion code
Are you try this script http://scripts.breidt.net/#incrSave
no i dont need that one
just need the - max save plus -code to work with saveAsVersion:2010
Are you try something like this
newFile = @"C:\Temp\testFile.max"
saveMaxFile newFile saveAsVersion:2010 clearNeedSaveFlag:false useNewFile:false quiet:true