[Closed] max file from a previous version
Hello CGT,
I’m looking for a callback or some mechanism to tell when max is loading a file from a previous version. Any ideas?
Josh.
I’v got an idea of this, but u should work one more step: create a text file in the same path of the maxfile and use the same name of it. Such as myfile.max and myfile.txt. Write the version of the maxfile in the text, such as 9000 (Note: u can use maxversion() to get the version of max).
Now u may know what to do:)
Maybe there will be another better method, but I’v just got this inadvisable one.
Hi Leo,
Interesting idea, but I need it to work with other peoples files, so I don’t really want to have the extra step. I’ll keep looking for something…
J.
Here is something I put together last year that sounds like what you are looking for.
http://www.mathiesonfacer.com/temp/MJF_maxVersionConfirm.ms
I just checks the version of the previous Max file and pops up a message queryBox if the version does not match with the version of Max that is being used. I have not set up any case statements yet to convert v10.0 to Max 2008. Also, the file has to actually be opened in order to get the version of the file. Would have been great to somehow got it to determine before opening the file, but ah well.
Hope that helps.
Hi Mathieson
I see what you’re doing, checking the file properties to see what version the max file was last saved with. This will do exactly what I want so thanks a lot!
Josh.