The getparam script queries the import plug-in parameters where [arg] is a recognized import parameter.
"FBXImporterGetParam" returns the value of the named parameter. If the parameter is unrecognized or the wrong number of arguments are provided, the value "unsupplied" is returned.
For a list of supported parameters, see FBXImporterGetParam [arg] [value].
The setparam script sets the specified argument for import where [arg] is a recognized import parameter and [value] is an appropriate value for the supported parameter.
For example, to import an FBX file using the Add and Update scene elements mode and the skin modifier, but without loading animation FCurves:
FBXImporterSetParam "Mode" #merge FBXImporterSetParam "Skin" true FBXImporterSetParam "Animation" false
FBXImporterSetParam recognizes the following parameter and values:
Name | Value |
---|---|
"Animation" | True or false. See Animation for an explanation of this setting. |
"AxisConversion" | True or false. See Axis conversion for an explanation of this setting. |
"BakeAnimationLayers" | True or false. See Bake Animation Layers for an explanation of this setting. |
"Cameras" | True or false. See Cameras for an explanation of this setting. |
"ConvertUnit" | "mm" or "cm" or "dm" or "m" or "km" or "in" or "ft" or "yd". See File Units Converted To for an explanation of this setting. |
"FillTimeline" | True or false. See Fill Timeline for an explanation of this setting. |
"FilterKeyReducer" | True or false. |
"FilterKeySync" | True or false. |
"GenerateLog" | True or False. See Generate Log Data for an explanation of this setting. |
"ImportBoneAsDummy" | True or false. See Bone Creation for an explanation of this setting. |
"KeepFrameRate" | True or false. |
"Lights" | True or false. See Lights for an explanation of this setting. |
"LoadImportPresetFile" | "x" where x is the location of the preset file. See Import presets for an explanation of this setting. |
"Markers" | True or false. See Optical Markers for an explanation of this setting. |
"Mode" | #create (Add) #exmerge (Update Animation) #merge (Add and Update animation). See File Content for an explanation of this setting. |
"PopSettings" | This setting preserves the current state of the settings when you perform a One-Click operation. This setting loads all settings saved by FBXImporterSetParam "PushSettings". |
"PushSettings" | This setting preserves the current state of the settings when you perform a One-Click operation. This setting saves all I/O settings |
"PointCache" | True or false. See Point Cache Files for an explanation of this setting. |
"Resampling" | Float. |
"ResetImport" | Restores factory defaults. If ResetImport is called without argument for:
Use this command to load a factory preset without knowing the directory. Note: This command is used by the OneClick functionality.
|
"ScaleConversion" | True or false. See Units for an explanation of this setting. |
"ScaleFactor" | Float. See Scale Factor for an explanation of this setting. |
"Shape" | True or false. See Deformations for an explanation of this setting. |
"Skin" | True or false. See Deformations for an explanation of this setting. |
"SmoothingGroups" | True or false. See Smoothing Groups for an explanation of this setting. |
"TakeCount" | This parameter is only available for the "get" function. |
"TakeIndex" | An integer number from 1 to the number of takes in the FBX file. This parameter is only available for setting. When you specify the take, use 0 to indicate no animation. (This is the default value of this property.) Use 1 to specify the first take in the FBX file, 2 to indicate the second take, and so on. See Animation Take for an explanation of this setting. |
"UpAxis" | "Y" or "Z". See Axis Conversion for an explanation of this setting. |