maxscript/util/mxsMaxFileVersion.h File 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
}
 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

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

kMxsMaxFileVersion_2018 

3ds Max 2018 file version, corresponds to MAX_RELEASE_R20

kMxsMaxFileVersion_2019 

3ds Max 2019 file version, corresponds to MAX_RELEASE_R21

kMxsMaxFileVersion_2020 

3ds Max 2020 file version, corresponds to MAX_RELEASE_R22

22 {
30 
41 };
The current 3ds Max version, corresponds to MAX_RELEASE.
Definition: mxsMaxFileVersion.h:29
3ds Max 2020 file version, corresponds to MAX_RELEASE_R22
Definition: mxsMaxFileVersion.h:40
3ds Max 2018 file version, corresponds to MAX_RELEASE_R20
Definition: mxsMaxFileVersion.h:36
Unsupported 3ds Max version, corresponds to MAX_RELEASE_UNSUPPORTED.
Definition: mxsMaxFileVersion.h:24
A file version was not specified, maxscript save commands default to saving to current file version (...
Definition: mxsMaxFileVersion.h:27
3ds Max 2016 file version, corresponds to MAX_RELEASE_R18, obsolete as of 3ds Max 2020 ...
Definition: mxsMaxFileVersion.h:32
3ds Max 2017 file version, corresponds to MAX_RELEASE_R19
Definition: mxsMaxFileVersion.h:34
3ds Max 2019 file version, corresponds to MAX_RELEASE_R21
Definition: mxsMaxFileVersion.h:38

Function Documentation

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.
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.