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 |
AxisConversion | True or false |
Cameras | True or false |
ColladaStartTime | Float (in seconds - (0.0) |
ColladaFrameCount | Integer (0) |
ColladaFrameRate | Float (in fames) |
ConvertUnit | "mm" or "cm" or "dm" or "m" or "km" or "in" or "ft" or "yd" |
FilterKeyReducer | True or false |
FilterKeySync | True or false |
ImportBoneAsDummy | True or false |
KeepFrameRate | True or false |
Lights | True or false |
LoadImportPresetFile | “x” where x is the location of the preset file. |
Markers | True or false |
Mode | #create (Add to scene)#exmerge (Update scene elements)#merge (Add and Update scene elements) |
PointCache | True or false |
Resampling | Float |
ResetImport | No value |
ScaleConversion | True or false |
ScaleFactor | Float |
Shape | True or false |
Skin | True or false |
SmoothingGroups | True or false |
TakeIndex | An integer number from 1 to the number of takes in the FBX file. This parameter is only available for setting. |
UpAxis | “Y” or “Z” |
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