[PYTHON] Maya FBX Export command

What is this?

A note about the Autodesk Maya FBX export command ** FBX Export **

MEL This is what you see in the official user guide.

http://download.autodesk.com/global/docs/maya2013/ja_jp/files/GUID-C3BC4E4B-44DA-47D5-9E6F-265E80907F47.htm

FBXExport -f [filename] [-s];

With -s, the selected object is exported. If not attached, the whole scene.

Python In Python, it's written like this

mc.FBXExport(['-f','/path/to/export/dir/scene.fbx','-s'])

A little more ... something like this ...

Try help

FBXExport-help


import maya.cmds as mc
help(mc.FBXExport)

Help on function FBXExport in module maya.cmds:

FBXExport(*args, **keywords)

I see

PyMEL From PyMEL

python


import pymel.core as pm
help(pm.FBXExport)
Help on function FBXExport in module pymel.internal.pmcmds:

FBXExport(*args, **kwargs)
    Derived from mel command `maya.cmds.FBXExport`

It's a function written in pymel.internal.pmcmds. https://github.com/LumaPictures/pymel/blob/master/pymel/internal/pmcmds.py

Alternative

Than the above writing ** file command ** Let's use ** mel.eval ** Let's use You can find it more often. Like this.

FBX Exporting, Batching files and Maya Python http://tech-artists.org/forum/showthread.php?5058-FBX-Exporting-Batching-files-and-Maya-Python

Summary

I enjoyed the sophisticated help and how to pass arguments.

Remarks

It is provided in a plugin called fbxmaya. fbxmaya.png

There are quite a lot of FBX related commands

py:maya.cmds.__dict__


for i in mc.__dict__.keys():
    if 'FBX' in i:
        print i

FBXLoadExportPresetFile
FBXResetImport
FBXLoadMBImportPresetFile
FBXImportHardEdges
FBXExportReferencedAssetsContent
FBXPushSettings
FBXExportBakeComplexEnd
FBXProperties
FBXExportScaleFactor
FBXImportQuaternion
FBXExportBakeComplexStep
FBXImport
FBXImportProtectDrivenKeys
FBXExportColladaFrameRate
FBXExportQuickSelectSetAsCache
FBXGetTakeComment
FBXExportAxisConversionMethod
FBXLoadImportPresetFile
FBXImportSkeletonDefinitionsAs
FBXGetTakeIndex
FBXExportSmoothMesh
FBXResamplingRate
FBXRead
FBXImportAutoAxisEnable
FBXImportUpAxis
FBXImportOCMerge
FBXExportUseSceneName
FBXExportLights
FBXProperty
FBXLoadMBExportPresetFile
FBXGetTakeName
FBXExportColladaTriangulate
FBXImportConvertUnitString
FBXImportSkins
FBXImportForcedFileAxis
FBXExportShowUI
FBXExportSmoothingGroups
FBXExportSplitAnimationIntoTakes
FBXExportInstances
FBXResetExport
FBXExportCameras
FBXImportConstraints
FBXImportSetLockedAttribute
FBXExportTriangulate
FBXExportBakeResampleAnimation
FBXGetTakeCount
FBXExportConvert2Tif
FBXExportSkins
FBXExportReferencedContainersContent
FBXExportConvertUnitString
FBXExportApplyConstantKeyReducer
FBXImportShapes
FBXExportUpAxis
FBXExportQuaternion
FBXExportBakeComplexAnimation
FBXExportAnimationOnly
FBXExportUseTmpFilePeripheral
FBXExportEmbeddedTextures
FBXImportLights
FBXImportAxisConversionEnable
FBXImportGenerateLog
FBXExportInAscii
FBXExportColladaSingleMatrix
FBXExportShapes
FBXClose
FBXExportTangents
FBXExportBakeComplexStart
FBXUICallBack
FBXUIShowOptions
FBXImportMergeBackNullPivots
FBXImportUnlockNormals
FBXImportSetMayaFrameRate
FBXPopSettings
FBXImportCameras
FBXExportHardEdges
FBXExportSkeletonDefinitions
FBXExportGenerateLog
FBXExportConstraints
FBXExportFinestSubdivLevel
FBXExportFileVersion
FBXImportFillTimeline
FBXImportMergeAnimationLayers
FBXImportResamplingRateSource
FBXImportConvertDeformingNullsToJoint
FBXExportInputConnections
FBXImportCacheFile
FBXImportScaleFactor
FBXExportCacheFile
FBXImportMode
FBXGetTakeReferenceTimeSpan
FBXExportDeleteOriginalTakeOnSplitAnimation
FBXImportShowUI
FBXGetTakeLocalTimeSpan
FBXExport

reference?

How does Maya populate its maya.cmds package? http://www.akeric.com/blog/?p=828

FBX Wrapper (Gist) There was a person who wrote a rapper for Gist https://gist.github.com/theodox/2b83b1c47a18448d3cbf

Recommended Posts

Maya FBX Export command
Export mp4 from maya using ffmpeg