The FbxExporterSetParam function provides access to the FBX Exporter dialog options.
For further details on the various options, please see the following topic in the 3ds Max Help:
Managing Scenes and Projects > Geometry File Formats > FBX Files: Data Sharing with Maya, MotionBuilder, Revit, Softimage, and Toxik/Composite > Scripting for the 3ds Max FBX plug-in
pluginManager.loadClass FbxExporterMethods
<boolean>OpenFbxSetting()Opens the modal "FBX Export" settings dialog. Available in 3ds Max 2017 and higher.
Returns True if the user closed the dialog by pressing the OK button.
Returns False if the user closed the dialog by pressing the Cancel button, or via the window’s [X] icon.
<Value>FbxExporterGetParam <String>arg enumAsString:<boolean> to:<stream>This function expects a string as argument, specifying the option to get.
See the left column of the table below for available option.
If enumAsString:true is specified, and the value type for 'arg' is an enum (such as "AxisConversionMethod" or "ConvertUnit"), the MAXScript value type returned is a String value rather than a Name value. Available in 3ds Max 2027.2. The default value is 'false'.
If to:<stream> is specified, output from "FBXProperties" is sent to the specified stream. Otherwise the output will be sent to the MAXScript listener. Available in 3ds Max 2027.2.
FbxExporterSetParam <String>arg <Value>valIt expects a string as a first argument specifying the option to affect, with the second argument being the new value as described below:
| Arg String | Value |
|---|---|
| "Animation" | True or False. |
| "ASCII" | True or False. |
| "AxisConversionMethod" | "None", "Animation", or "Fbx_Root". |
| "BakeAnimation" | True or False. |
| "BakeFrameStart" | Integer value. |
| "BakeFrameEnd" | Integer value. |
| "BakeFrameStep" | Integer value. |
| "BakeResampleAnimation" | True or False. |
| "Bip2Fbx" | True or False. |
| "Cameras" | True or False. |
| "CAT2HIK" | True or False. |
| "ColladaTriangulate" | True or False. |
| "ColladaSingleMatrix" | True or False. |
| "ColladaFrameRate" | Float (in frames). |
| "Convert2Tiff" | True or False.This converts non-TIFF-formatted texture images into TIFF format which makes them readable in other applications that do not support other image types. |
| "ConvertUnit" | "mm" or "cm" or "dm" or "m" or "km" or "in" or "ft" or "mi" or "yd". |
| "EmbedTextures" | True or False. |
| "Environment" | True or False. |
| "ExportAnimationOnly" | True or False. This parameter is exposed only in MAXScript, it does not appear on the UI. Available in 3ds Max 2019.1 Update and higher. |
| "ExportShellMaterials" | 0 or 1. If 0, the Baked material is exported, if 1 the Original material is exported. Available in 3ds Max 2021.1 Update and higher. |
| "FBXProperties" | No argument other than the optional to:<stream> - Lists all properties from the Export branch |
| "FileVersion" | "FBX201300" or "FBX201200" or FBX201100" or "FBX201000" or "FBX200900" or "FBX200611". |
| "FilterKeyReducer" | True or False. |
| "GeomAsBone" | True or False. |
| "GenerateLog" | True or False. |
| "Lights" | True or False. |
| "LoadExportPresetFile" | The file name of the preset file. |
| "NormalsPerPoly" | True or False. |
| "PointCache" | True or False. |
| "PopSettings" | No argument - This setting restores the current state of the settings when you perform a One-Click operation.FBXExporterSetParam "PopSettings" loads all I / O Settings. |
| "PreserveEdgeOrientation" | True or False. |
| "PreserveInstances" | True or False. |
| "PushSettings" | No argument - This setting preserves the current state of the settings when you perform a One-Click operation.FBXExporterSetParam "PushSettings" saves all I / O Settings. |
| "RemoveSinglekeys" | True or False. |
| "Resampling" | Float. |
| "ResetExport" | Restores factory defaults. If ResetExport is called without argument for: 3DS Max: Loads the Autodesk Media & Entertainment export preset. 3DS Design: Loads the Autodesk Architectural (Revit) export preset. Using the file name only as the argument: If we pass "Autodesk Media & Entertainment.fbxexportpreset" or "Autodesk Architectural (Revit) .fbxexportpreset", it searches the factory preset directory to load the preset file. Use this command to load a factory preset without knowing the directory. Note: This command is used by the OneClick functionality. |
| "ScaleFactor" | Float. |
| "SelectionSet" | Name of the selection set to use. |
| "SelectionSetExport" | True or False. |
| "Shape" | True or False. |
| "Skin" | True or False. |
| "ShowWarnings" | True or False. |
| "SmoothingGroups" | True or False. |
| "SmoothMeshExport" | True or False. |
| "SplitAnimationIntoTakes" | "takename" which is the name of the take to use, followed by "frameStart", "frameEnd" to define the interval.Use "-c |
| "TangentSpaceExport" | True or False. |
| "Triangulate" | True or False. |
| "UpAxis" | "Y" or "Z". |
| "UseSceneName" | True or False. |
| "UseTmpFilePeripheral" | True or False. |
FOR EXAMPLE
testObj = teapot() -- fbxexp examples select testObj -- save in text format: FBXExporterSetParam "ASCII" true --to prevent the export of the cameras: FBXExporterSetParam "Cameras" False exportFile @"c:\test.fbx" #noPrompt selectedOnly:true using:FBXEXP
-- List all properties from the Export branch: FBXExporterSetParam "FBXProperties"