Notifications
Clear all

[Closed] FBX and Collada export settings

Hi,

I’m exporting collada files and need to do some settings by script. There are multiple places in the docs which refer to the fbx exporter settings and they confuse me a bit.
One way of setting export settings is documented here

FBXExporterSetParam "Animation" false

Another way goes like this and it’s documented here

FBXExporterSetParam "Export|IncludeGrp|Animation" true

The documentation lists the available parameters. But if I use the

FBXExporterGetParam "FBXProperties"

command in maxscript I get a list of different but partly overlapping properties. Does anyone have an idea if there’s a right way to do this? Or is it trial and error?

5 Replies

I dealt with this a year ago in this tech-art.org thread .

the summary :

Turns out that the property names returned in the script listener using FBXExporterGetParam “FBXProperties”
are not the same names you must use with FBXExporterSetParam

“BakeComplexAnimation” vs “BakeAnimation” for example…fun

What I went with was a s single function to set everything. Have had no problems yet.

fn setFBX=
	(
		--commented out settings left as defualt,  here for future revision purposes, but most likely not needed

		FBXExporterSetParam "Animation" true 
		FBXExporterSetParam "ASCII" false -- binaries are smaller
		FBXExporterSetParam "AxisConversionMethod" "Animation"
		FBXExporterSetParam "BakeAnimation"true 
		-- FBXExporterSetParam "BakeFrameStart" --derived from length of playback range
		-- FBXExporterSetParam "BakeFrameEnd"
		-- FBXExporterSetParam "BakeFrameStep"
		-- FBXExporterSetParam "BakeResampleAnimation"
		FBXExporterSetParam "Cameras" false
		-- FBXExporterSetParam "CAT2HIK"
		-- FBXExporterSetParam "ColladaTriangulate"
		-- FBXExporterSetParam "ColladaSingleMatrix"
		-- FBXExporterSetParam "ColladaFrameRate" 
		FBXExporterSetParam "Convert2Tiff" false
		--FBXExporterSetParam "ConvertUnit" "cm"  --should be Auto if SYSTEM UNITS  are correct
		FBXExporterSetParam "EmbedTextures"false
		FBXExporterSetParam "FileVersion" "FBX201300"
		FBXExporterSetParam "FilterKeyReducer" false --OPTIMIZE PASS  : curve filter stuff
		FBXExporterSetParam "GeomAsBone" false --only real bones should be exporting
		FBXExporterSetParam "GenerateLog" true
		FBXExporterSetParam "Lights" false
		--FBXExporterSetParam "LoadExportPresetFile"--this very code block negates a need for a preset
		FBXExporterSetParam "NormalsPerPoly"false--MoBu setting
		FBXExporterSetParam "PointCache" false--VERTEX ANIMATION
				-- http://download.autodesk.com/us/fbx/2013/3ds_Max_FBX_Plug-in_Help/index.html?url=files/GUID-691D1194-AE6E-4EE9-A6A3-F1797D2F3B27.htm,topicNumber=d30e2947 
		--FBXExporterSetParam "PopSettings"--for 'one click' operations
		FBXExporterSetParam "Preserveinstances" false--OPTIMIZE PASS  if instances used
		--FBXExporterSetParam "PushSettings--for 'one click' operations
		FBXExporterSetParam "Removesinglekeys"false--OPTIMIZE PASS  if motionless scenes
		--FBXExporterSetParam "Resampling"--for anim curves
		--FBXExporterSetParam "ResetExport"-reverts Loads the Autodesk Media & Entertainment export preset.
		--FBXExporterSetParam "ScaleFactor" 1.0 --should be Auto if SYSTEM UNITS  are correct
		--FBXExporterSetParam "SelectionSet"--VERTEX ANIMATION
		--FBXExporterSetParam "SelectionSetExport"--VERTEX ANIMATION 
		FBXExporterSetParam "Shape" true-- per conv w MG
		FBXExporterSetParam "Skin" true --skined bones is what we're all about
		FBXExporterSetParam "ShowWarnings" false 
		FBXExporterSetParam "SmoothingGroups" true--asked kelsey
		FBXExporterSetParam "SmoothMeshExport" false-- for turbosmooth
		--FBXExporterSetParam "SplitAnimationIntoTakes"-- one anim per file
		FBXExporterSetParam "TangentSpaceExport" false
		FBXExporterSetParam "Triangulate"false
		FBXExporterSetParam "UpAxis" "Y"
		FBXExporterSetParam "UseSceneName" false 
	)


the other tricky part is using the accumulator to specify ranges for “takes” or sections of animation. I posted details about this a while back…

http://forums.cgsociety.org/showpost.php?p=7687180&postcount=2

good luck, the FBX documentation sucks BADLY.

Thanks Logan and Pete for the feedback. I’m actually using a method much like Logan’s to run through all relevant settings.
It’s so strange, because fbx is supposed to be THE interchange format for autodesk products. You’d expect a bit more clarity.

Hmmm pete I may need t use your tip soon, glad you chimed in.

No worries, took me a fair amount of trial and error to find it, so I am happy if it helps someone else.