Notifications
Clear all

[Closed] return max version

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

2 Replies

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

Thanks a bunch! I’ve been working with python and mel so this is quite a difference.