The following MEL commands are used to emulate miscellaneous options in the FBX user interface.
FBXClose;
Closes the FBX importer so that any FBX files launched with the FBXRead command are unlocked.
When you use the FBXRead command, it opens and locks the FBX file. To release the file, you must either call the FBXClose command, or use call commands that open a new file, for example, FBXRead or FBXImporter, and so on.
FBXGetTakeComment [index];
Returns the comment attached to the take at the specified index in the take array. This command uses the file stored in the file buffer.
You can load a file into the file buffer with the FBXRead command.
FBXGetTakeCount;
Returns the number of takes saved in the file stored in the file buffer.
You can load a file into the file buffer with the FBXRead command.
FBXGetTakeIndex [take name];
Returns the index of the first take named as the parameter in the take array. This command uses the file stored in the file buffer.
You can load a file into the file buffer with the FBXRead command.
FBXGetTakeLocalTimeSpan [index];
Returns the local start and stop time of the take at the specified index in the take array. This command uses the file stored in the file buffer.
You can load a file into the file buffer with the FBXRead command.
FBXGetTakeName [index];
Returns the name of the take in the take array's specified index. This command uses the file stored in the file buffer.
You can load a file into the file buffer with the FBXRead command.
FBXGetTakeName [index];
FBXGetTakeReferenceTimeSpan [index];
Returns the reference start and stop times of the take at the specified index in the take array. This command uses the file stored in the file buffer.
You can load a file into the file buffer with the FBXRead command.
FBXLoadExportPresetFile -f [filepath];
Sets the export preset file path.
FBXLoadImportPresetFile -f [filepath];
This command lets you set the import preset file path.
You can use this to load the MotionBuilder Import presets without knowing their file path.
For example: FBXLoadMBImportPresetFile; loads "C:\<maya version>\bin\plug-ins\FBX\Presets\<version>\import\Autodesk MotionBuilder.fbximportpreset" (The path may be different on your machine.)
FBXLoadMBExportPresetFile
This command loads the MotionBuilder presets provided with each release.
You can use this to load the MotionBuilder Import/Export presets without knowing their file path.
For example: FBXLoadMBExportPresetFile; loads "C:\<maya version>\bin\plug-ins\FBX\Presets\<version>\export\Autodesk MotionBuilder.fbxexportpreset" (The path may be different on your machine.)
FBXLoadMBImportPresetFile
This command loads the MotionBuilder presets provided with each release.
You can use this to load the MotionBuilder Import/Export presets without knowing their file path.
For example: FBXLoadMBImportPresetFile; loads "C:\m<maya version>\bin\plug-ins\FBX\Presets\<version>\import\Autodesk MotionBuilder.fbximportpreset" and FBXLoadMBExportPresetFile; loads "C:\<maya version>\bin\plug-ins\FBX\Presets\<version>\export\Autodesk MotionBuilder.fbxexportpreset" (The path may be different on your machine.)
FBXPopSettings;
This setting loads all settings that were saved by the Pop script; it preserves the current state of the settings when you perform a One-Click operation.
FBXPushSettings;
This setting saves all I/OSettings. Use FBXPushSettings to preserve the current state of the settings when you perform a "Send To" operation.
FBXRead -f [filename];
Reads the specified FBX file without importing anything into Maya. The file is instead stored in a buffer. This command is used for take querying.
Once read or imported, use the commands FBXGetTakeCount, FBXGetTakeName, FBXGetTakeIndex for take querying.
FBXResetImport;
This command restores the default values of the FBX Importer and loads settings specified in the Autodesk Media & Entertainment import preset , as in UI. See import Presets for more information.
FBXResetExport;
This command restores the default values of the FBX Exporter and loads settings specified in the Autodesk Media & Entertainment export preset. See Preset options for more information.
FBXResamplingRate -v [float];
FBXResamplingRate -q;
Sets the rate at which the exporter produces keyframes when it needs to resample data.
Resampling is needed when the interpolation of the Maya animation curve cannot be perfectly represented by curves in MotionBuilder.