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_2014 = 2014,
  kMxsMaxFileVersion_2015 = 2015, kMxsMaxFileVersion_2016 = 2016, kMxsMaxFileVersion_2017 = 2017
}
 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_2014 

3ds Max 2014 file version, corresponds to MAX_RELEASE_R16

kMxsMaxFileVersion_2015 

3ds Max 2015 file version, corresponds to MAX_RELEASE_R17

kMxsMaxFileVersion_2016 

3ds Max 2016 file version, corresponds to MAX_RELEASE_R18

kMxsMaxFileVersion_2017 

3ds Max 2017 file version, corresponds to MAX_RELEASE_R19

22 {
30 
39 };
The current 3ds Max version, corresponds to MAX_RELEASE.
Definition: mxsMaxFileVersion.h:29
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 2014 file version, corresponds to MAX_RELEASE_R16
Definition: mxsMaxFileVersion.h:32
3ds Max 2016 file version, corresponds to MAX_RELEASE_R18
Definition: mxsMaxFileVersion.h:36
3ds Max 2015 file version, corresponds to MAX_RELEASE_R17
Definition: mxsMaxFileVersion.h:34
3ds Max 2017 file version, corresponds to MAX_RELEASE_R19
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.