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.
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 file for an explanation of this setting. |
"ImportBoneAsDummy" | True or false. See Bones 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 (Add and Update Animation) #merge (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 file(s) 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. |
"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. |
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