-----------------------------------------------------------------
--
-- Get the 3ds Max version.
-- Examples: getMaxVersion()
--
function getMaxVersion =
(
local maxvArr = maxversion()
local maxvi = maxvArr[1]
local maxv = "2014"
if (maxvi >= 8000 and maxvi < 9000) then
(
maxv = "8"
)
else if (maxvi >= 9000 and maxvi < 10000) then
(
maxv = "9"
)
else if (maxvi >= 10000 and maxvi < 11000) then
(
maxv = "2008"
)
else if (maxvi >= 11000 and maxvi < 12000) then
(
maxv = "2009"
)
else if (maxvi >= 12000 and maxvi < 13000) then
(
maxv = "2010"
)
else if (maxvi >= 13000 and maxvi < 14000) then
(
maxv = "2011"
)
else if (maxvi >= 14000 and maxvi < 14900) then
(
maxv = "2012"
)
else if (maxvi >= 14900 and maxvi < 16000) then
(
maxv = "2013"
)
else if (maxvi >= 16000) then
(
maxv = "2014"
)
return maxv
)
--------------------------------------------------------------------- Get the 3ds Max version.-- Examples: getMaxVersion()--function getMaxVersion =( local maxvArr = maxversion() local m