NOD Engine SDK 1.0

NODExport Tool Documentation

Introduction

NODExport is provided as a "MLL" file, which is a Maya Link Library. This is not a standalone tool and can only be used as a plug-in to the Maya 3D package from Alias|Wavefront. We are providing this file only as an example of how to create an object or animation export tool, not as a part of a support product.

Purpose

Nodexport.mll can be loaded from inside a Maya editing session to extend the environment with a new command called "nodExport". There is no graphic interface for the tool, all exports are performed by loading the appropriate scene file in Maya, then typing "nodExport" in the command line as well as any command line parameters desired. When run, the program will simple output a NOD or a NAD file in the current working directory for the MEL command line interface. Diagnostic output from the export process may also be output to the appropriate window.

Note the MEL commands are case-sensitive, so it is important to use the appropriate capitalization for the tool, which is "nodExport".

Command Line Options

Since this is a command line tool used mainly in scripts, most of the important functionality is available only through command line switches. All command line options are specific as "-option", and some options have additional parameters. The table below describes the valid command line options in the current version of NodExport.

Command

Comments

-anim filename

Export the currently loaded animation to the specified NAD filename

-model filename

Export the currently loaded model geometry data to a NOD file

-debug

Print verbose debug information during export

-quiet

Surpress most debug information

-scale value

Scale all geometry by a uniform amount (default = 20.21)

-frame value

Set current frame to value before exporting

-nocurves

Disable curve smoothing of animations (if ľanim is specified)

-tag frame name

Add a special tag to a specific keyframe (see table below)

-lod

Enable progressive-mesh LOD computation

-sort

Sort meshes alphabetically before export (for forced draw-order, sky boxes primarily)

 

Keyframe Tags

When exporting animation data, there are certain special tags that can be inserted into the keyframe data to trigger gameplay functionality. Some of these tags are optional, others are required for the game to run properly. For information on the tag names that are valid and their meanings, see the NAD file format document.