heyho,
does somewhere a tool exist which allows to check a maxscript code for compatibility around all different max versions? Something that can crawl through the code to tell me whats the oldest version of max that allows to run this script?
I'm missing something like the "save as - for flash version xy" functionality from flash.
Replies
thx anyway !
There's a simple maxscript function to get the version of Max that is running, and then your script can either give a warning about a version if it's too low to work with your script.
Or you can have it do different things depending on what version number is returned - eg. they added some stuff in Max 2008 that wasn't there in Max 8/9, but it was easy to write a utility function, so I had it use the Max 2008 in-built method if the version was right, and used my own utility function for backwards-compatibility with older versions.
That doesn't really do what you wanted but it should mean you can bullet-proof your own scripts to make sure they can't be run on old versions of Max which don't have in-built functions you're relying on.
thats a cool tip, thx!
Where ((maxVersion())[1] / 1000) returns 3ds Max version as integer: