mxsMaxFileVersion.h File Reference

#include "..\ScripterExport.h"
#include "..\..\plugapi.h"

Go to the source code of this file.

Enumerations

enum   EMxsMaxFileVersion {
  kMxsMaxFileVersion_Unsuported = -1, kMxsMaxFileVersion_Unspecified = 0, kMxsMaxFileVersion_Current = 1, kMxsMaxFileVersion_2010 = 2010,
  kMxsMaxFileVersion_2011 = 2011, kMxsMaxFileVersion_2012 = 2012
}
 

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 3dsMaxRelease.
ScripterExport EMxsMaxFileVersion  GetMxsMaxFileVerFromMaxVer (long maxVersion)
  Converts a given 3ds Max version number to a EMxsMaxFileVersion.

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 3dsMaxRelease 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_2010 

3ds Max 2010 file version, corresponds to MAX_RELEASE_R12

kMxsMaxFileVersion_2011 

3ds Max 2011 file version, corresponds to MAX_RELEASE_R13

kMxsMaxFileVersion_2012 

3ds Max 2012 file version, corresponds to MAX_RELEASE_R14

Definition at line 23 of file mxsMaxFileVersion.h.


Function Documentation

ScripterExport long GetMaxVerFromMxsMaxFileVer ( EMxsMaxFileVersion  mxsMaxFileVer )

Converts a "human readable" 3ds Max version to 3dsMaxRelease.

Parameters:
mxsMaxFileVer 3ds Max version as it occurs in the product name
Returns:
A value in 3dsMaxRelease (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:
maxVersion 3ds 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.