Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Maya® / Plugins - Extensions / FBX Animation Export Flag missing...
  RSS 2.0 ATOM  

FBX Animation Export Flag missing...
Rate this thread
 
64013
 
Permlink of this thread  
avatar
  • MaxGyver
  • Posted: 30 January 2012 08:54 AM
  • Total Posts: 2
  • Joined: 30 January 2012 08:21 AM

Hi Everyone.

I’m actually working on our asset pipeline and I’m trying to automate some FBX export.  I understand how to manage FBX Export Options without the GUI (with the use of functions like FBXExportCameras -v True...).  My problem is when I want to export some animation.  I found the FBXExportAnimationOnly and the FBXExportBakeComplexAnimation functions, but not the one that just allow the animation, like the checkbox in the GUI (and I red the entire FBX exporter PDF).  I do not want ONLY the animation, I want the animation AND the geometries to be contained in the exported FBX.  If the last thing I exported with the GUI has the animation checkbox checked, my script works just fine. But if the checkbox is unchecked in the GUI, I just can’t export animation with the tool.

Anyone knows the magic FBXExportAnimation -v True function that is equivalent to the GUI Animation checkbox???

Thanks



Replies: 0
avatar
  • MaxGyver
  • Posted: 31 January 2012 05:05 AM

Hi again!

I noticed that I forgot to mention that it was for Maya 2012.  Anyway, I found how to manage the problem.  Here it goes :

You have to use the FBXProperty function before calling the export, like this :

MEL

FBXProperty "Export|IncludeGrp|Animation" -v true;

Python

import maya.mel as mel
mel
.eval( 'FBXProperty "Export|IncludeGrp|Animation" -v true;' )

It will not update the GUI though, so if you reopen the GUI, it will reset the value to the last value used by the GUI.

Don’t know why it’s not in the FBX Documentation.



Replies: 0