PDA

View Full Version : max file from a previous version


j-man
08-13-2009, 02:25 PM
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.

feilang
08-14-2009, 02:36 AM
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.

j-man
08-14-2009, 10:46 AM
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.

Mathieson
08-14-2009, 02:23 PM
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.

j-man
08-17-2009, 11:56 AM
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.

CGTalk Moderation
08-17-2009, 11:56 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.