Export Plug-In

This chapter describes the use and features of the Export plug-in.

Export Plug-In Features
Method of Use
Executing from MAXScript
Errors and Warnings

Export Plug-In Features

The Export plug-in includes a feature for outputting intermediate files to a specified folder.

Using the Tool

To output data for particular nodes only (including lower nodes in the hierarchy), select the nodes you want to output. When outputting the entire scene, it is not necessary to select nodes.

To display the Options window, run NW4C Export with Setting.

To output the intermediate file, specify the appropriate options and click Export or Apply. Unlike Export, Apply does not close the Options window after output. The option settings that exist at the time of output are automatically recorded as the current options.

Option Settings

Output Options

Options related to outputting intermediate files.

General Options

These are general options available for intermediate files.

Output File Selection

This option specifies the type of intermediate file to be output.

The value of HasSkinningMatrix in the intermediate file will differ depending on whether the CMDL file and the CSKLA file are output at the same time, or only the CSKLA file is output. This is because vertex processing is omitted when the CMDL file is not output in order to shorten the processing time. Nothing is affected by the differing values for HasSkinningMatrix.



Optimization Options

This allows data optimization while outputting data from 3ds Max to intermediate files. Options for this optimization process are set here.


Quantization Options

This option is for setting the degree of precision to use for vertex data when converting to binary data.
If a fixed-point number is used, the amount of data is less than when a floating-point number is used, but precision is lowered.

Model Options

These are model-related options.


Animation Options

These are animation-related options.

Tolerance Options

This option specifies the allowable range of errors when animation curve data is optimized.


If the maximum difference between the start frame value and the value used for every other frame remains below the allowable value specified here, the animation is assumed to be fixed and output is made using only the value for the start frame.

When animation curve data is created automatically from baked data, a key for each frame (in the units specified by Frame Precision) is created and the key for the below tolerance value specified here is deleted by the maximum differential value when performing Hermite interpolation. The smaller the allowable value for differentials, the greater the animation precision; however, as the number of keys grows larger, the amount of animation curve data also increases.

Managing Option Settings

To input or output the option settings as a C3ES (CTR 3D Export Settings) file, use the NW4C Settings menu item in the Options window.


Saving Option Settings for a Scene

If Save / Load Scene Settings is selected (the default), the option settings used the last time an intermediate file was output will be saved as scene data when a scene is saved. When the scene is opened, the option settings that were saved in the scene data are loaded. The current option settings remain if option settings were not saved with the scene data. Furthermore, an option setting is loaded when a scene for which option settings have been saved is imported.

If Save / Load Scene Settings is cleared, no option settings are saved with the scene. Furthermore, option settings are not loaded when scene data is opened.

Regardless of whether Save/Load Scene Settings is on or off, option settings at the time an intermediate file was last output are saved as a default settings file.
In addition, this default settings file is loaded at time of next startup.
The default settings file is saved under the name nw4cmax.c3es in the plug-in settings folder C:\Documents and Settings\[user_name]\Local Settings\Application Data\Autodesk\3dsmax\[max_version]\jpn\plugcfg.

To delete the option settings saved in the scene data, click Reset Scene Settings.

To delete the option settings that were saved in the scene data, click Delete Scene Settings. However, this only works if you clear Save / Load Scene Settings and then save the scene data. If you do not save the scene data, the option settings are retained.

Loading/Saving Option Settings Using C3ES Files

To output option settings to a C3ES file, click Save Settings to r3es File. Option settings will be output when an output file name is specified on the file selection window. If the extension of the output file is other than .c3es, .c3es will be added automatically.

Click Load Settings from c3es File to enter option settings from a C3ES file. Option settings will be input when an input file name is specified on the file selection window.


Errors and Warnings

Error Verification

If an error or warning occurs during export, it will be output to the listener window.

Some errors are also displayed in a message box.


Error Types and Handling Errors

The error list as currently implemented is presented below in alphabetical order.

When an error is detected, the Export process halts.



Warning Types and Handling Warnings

The Warning List, as it is currently implemented, is presented below in alphabetical order.

The Export process will continue, even if a warning is detected.



CONFIDENTIAL