3ds Max C++ API Reference
mxsMaxFileVersion.h File Reference
#include "../ScripterExport.h"
#include "../../plugapi.h"

Enumerations

enum  EMxsMaxFileVersion {
  kMxsMaxFileVersion_Unsuported = -1 , kMxsMaxFileVersion_Unspecified = 0 , kMxsMaxFileVersion_Current = 1 , kMxsMaxFileVersion_2016 = 2016 ,
  kMxsMaxFileVersion_2017 = 2017 , kMxsMaxFileVersion_2018 = 2018 , kMxsMaxFileVersion_2019 = 2019 , kMxsMaxFileVersion_2020 = 2020 ,
  kMxsMaxFileVersion_2021 = 2021 , kMxsMaxFileVersion_2022 = 2022
}
 The 3ds Max file versions the maxscript save commands (saveMaxFile and saveNodes) work with. More...
 

Functions

ScripterExport long GetMaxVerFromMxsMaxFileVer (EMxsMaxFileVersion mxsMaxFileVer)
 Converts a "human readable" 3ds Max version to Version Macros. More...
 
ScripterExport EMxsMaxFileVersion GetMxsMaxFileVerFromMaxVer (long maxVersion)
 Converts a given 3ds Max version number to a EMxsMaxFileVersion. More...
 

Enumeration Type Documentation

◆ EMxsMaxFileVersion

The 3ds Max file versions the maxscript save commands (saveMaxFile and saveNodes) work with.

These values are converted by GetMaxVerFromMxsMaxFileVer() to the ones in Version Macros such as MAX_RELEASE, etc

Enumerator
kMxsMaxFileVersion_Unsuported 

Unsupported 3ds Max version, corresponds to MAX_RELEASE_UNSUPPORTED.

kMxsMaxFileVersion_Unspecified 

A file version was not specified, maxscript save commands default to saving to current file version (MAX_RELASE)

kMxsMaxFileVersion_Current 

The current 3ds Max version, corresponds to MAX_RELEASE.

kMxsMaxFileVersion_2016 

3ds Max 2016 file version, corresponds to MAX_RELEASE_R18, obsolete as of 3ds Max 2020

kMxsMaxFileVersion_2017 

3ds Max 2017 file version, corresponds to MAX_RELEASE_R19, obsolete as of 3ds Max 2021

kMxsMaxFileVersion_2018 

3ds Max 2018 file version, corresponds to MAX_RELEASE_R20, obsolete as of 3ds Max 2022

kMxsMaxFileVersion_2019 

3ds Max 2019 file version, corresponds to MAX_RELEASE_R21

kMxsMaxFileVersion_2020 

3ds Max 2020 file version, corresponds to MAX_RELEASE_R22

kMxsMaxFileVersion_2021 

3ds Max 2021 file version, corresponds to MAX_RELEASE_R23

kMxsMaxFileVersion_2022 

3ds Max 2022 file version, corresponds to MAX_RELEASE_R24

22 {
30 
45 };
@ kMxsMaxFileVersion_2018
3ds Max 2018 file version, corresponds to MAX_RELEASE_R20, obsolete as of 3ds Max 2022
Definition: mxsMaxFileVersion.h:36
@ kMxsMaxFileVersion_2017
3ds Max 2017 file version, corresponds to MAX_RELEASE_R19, obsolete as of 3ds Max 2021
Definition: mxsMaxFileVersion.h:34
@ kMxsMaxFileVersion_Current
The current 3ds Max version, corresponds to MAX_RELEASE.
Definition: mxsMaxFileVersion.h:29
@ kMxsMaxFileVersion_2022
3ds Max 2022 file version, corresponds to MAX_RELEASE_R24
Definition: mxsMaxFileVersion.h:44
@ kMxsMaxFileVersion_2019
3ds Max 2019 file version, corresponds to MAX_RELEASE_R21
Definition: mxsMaxFileVersion.h:38
@ kMxsMaxFileVersion_Unsuported
Unsupported 3ds Max version, corresponds to MAX_RELEASE_UNSUPPORTED.
Definition: mxsMaxFileVersion.h:24
@ kMxsMaxFileVersion_2021
3ds Max 2021 file version, corresponds to MAX_RELEASE_R23
Definition: mxsMaxFileVersion.h:42
@ kMxsMaxFileVersion_Unspecified
A file version was not specified, maxscript save commands default to saving to current file version (...
Definition: mxsMaxFileVersion.h:27
@ kMxsMaxFileVersion_2016
3ds Max 2016 file version, corresponds to MAX_RELEASE_R18, obsolete as of 3ds Max 2020
Definition: mxsMaxFileVersion.h:32
@ kMxsMaxFileVersion_2020
3ds Max 2020 file version, corresponds to MAX_RELEASE_R22
Definition: mxsMaxFileVersion.h:40

Function Documentation

◆ GetMaxVerFromMxsMaxFileVer()

ScripterExport long GetMaxVerFromMxsMaxFileVer ( EMxsMaxFileVersion  mxsMaxFileVer)

Converts a "human readable" 3ds Max version to Version Macros.

Parameters
mxsMaxFileVer3ds Max version as it occurs in the product name
Returns
A value in Version Macros (such as MAX_RELEASE), or MAX_RELEASE_UNSUPPORTED if a non-supported 3ds Max version is specified.

◆ GetMxsMaxFileVerFromMaxVer()

ScripterExport EMxsMaxFileVersion GetMxsMaxFileVerFromMaxVer ( long  maxVersion)

Converts a given 3ds Max version number to a EMxsMaxFileVersion.

Parameters
maxVersion3ds Max version number
Returns
The version number as it occurs in the product name , or kMxsMaxFileVersion_Unsuported if a non-supported 3ds Max version is specified.