MAXScript Access

 

OgreMax Version

To get the version of the installed OgreMax plugin:

Scene, Object, and Animation Settings

The scene and object settings that are normally accessible through the Scene Settings and Object Settings dialogs can also be accessed through MAXScript.

Scene Settings

To get the scene settings:

Object Settings

Mesh and Node Animation Settings

When adding animation settings for an object, be sure to set the AnimationName property in addition to any other relevant properties. The animation must also be added to the appropriate animations array of the object settings.

To add a mesh animation:

To add a node animation:

Inspecting Settings

After retrieving any of the settings objects, you can inspect their properties:

Exporting

In the following lines of code fileName is assumed to contain the path to the file where the scene will be exported. It must have the '.scene' or '.mesh' extension.