View Full Version : return max version
offshootcartoon 10-10-2008, 08:50 PM Any advice on how to get the version of max (8, 9, 2009) as a return value?
I'm finding it to be very difficult to find simple answers like this in the docs :(
|
|
ZeBoxx2
10-10-2008, 08:59 PM
you're looking for...
maxVersion()
-- returns (on this max version right here)
#(11000, 25, 0)
-- get only the first bit
(maxVersion())[1]
-- returns
11000
-- divide by 1000 for the true max 'version'
(maxVersion())[1] / 1000.0
-- returns
11.0
Also see maxOps in the documentation which can tell you whether the user is using Max, VIZ, whether it's a Trial, an NFR, etc. .. if needed :)
offshootcartoon
10-11-2008, 09:25 AM
Thanks a bunch! I've been working with python and mel so this is quite a difference.
CGTalk Moderation
10-11-2008, 09:25 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.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.