Notifications
Clear all

[Closed] Find max version requirement for script?

Hello, I was wondering if anyone knew of a way to find out what the version of max you would need to be able to run a particular macroscript or function that I wrote. It would save a lot of time if I could do this, instead of having to go through line by line, trying to figure out which methods were exposed by which version of max. The main reason for this is so that I can list the version requirements with my scripts, if I decide to distibute them.

4 Replies

There is no automatic way that I know of.
Running the script in earlier versions of Max, or knowing exactly what you are doing / checking the “Available in 3ds Max XXXX and higher” notes in the help is the typical approach…

Hi Bobo, that’s some bad news 🙁 For a large collection of functions and macroscripts, that’s a daunting task. Is there a way of at least finding all of the versions needed for commands from an interface? Maybe it would be a good idea to make spreadsheets for various interfaces with their commands and version requirements.

I guess its good practice in general to list the max version with each function or script. I wonder if it would be possible to write a script that searches through other scripts and even uses fileIn or Import commands to search through those scripts to determine a minimum version. Can you use maxscript to find text strings in files? You could always make a database of commands associated with a version number that the script searches for.

Not to diminish your efforts, but this really seems like a case of “Don’t worry about it until it’s ACTUALLY a problem.” Like Bobo said, test in previous versions of Max (at least as many as you’re able to) and note any use of functionality that is exclusive to the version of Max you’re currently using. Beyond that, let the community tell YOU what doesn’t work in which versions.

Yeah that’s probably a good way to look at it, but I can only test the scripts going back 2 versions. Also if I wanted to sell my scripts, I would think that people would be disapointed, if they had Max xxxx, and couldn’t run the script they paid for. If I was giving some scripts away for free, then sure, I probably wouldn’t worry about those as much. Too bad you can’t change maxscript into different version modes to test your scripts. Oh well, I guess it just means more work…