Scripting commands

 
 
 

Use these script commands to list, query, or set FBX I/O Settings properties for the Maya FBX plug-in, including properties created with a plug-in extension.

Note

The scripting commands do not affect the settings in the FBX Export/Import Presets window.

The FBXProperty command lets you use every option available in the FBX plug-in user interface.

There is generally a scripting command that represents every option found in the Maya FBX plug-in. However, if an option is added at the last moment and there is not yet a corresponding scripting command for it, you can use FBXProperty to access the new unscripted option.

Another use for the FBXProperty command is if no scripting command exists for you to use for a specific scripting workflow. With FBXProperty, you can still access the command.

Note

We recommend using the normal scripting command if one exists. But if a command does not exist for an option, you can use the FBXProperty to reach it.

Command Description
FBXProperties Use this command to list all import and export properties available. This command returns the property path, type, and current value. If the property is an Enum, it returns every possible value.
FBXProperty Import|IncludeGrp|LightGrp|Light -v true; Use this command to set an import value to true.
FBXProperty Import|IncludeGrp|LightGrp|Light -q; Use this command to query an import value.
FBXProperty Export|IncludeGrp|LightGrp|Light -v true; Use this command to set an export value to true.
FBXProperty Export|IncludeGrp|LightGrp|Light -q; Use this command to query an export value.

All script commands and paths in this section are case sensitive, so it is good practice to copy and paste them so you can have the exact path for the IO Settings when querying for a list of properties and their path.

Note

These script commands support only Integer, Double, Bool, and Enum properties