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® MotionBuilder® / Autodesk MotionBuilder 2009 / FBXExport in python help
  RSS 2.0 ATOM  

FBXExport in python help
Rate this thread
 
33324
 
Permlink of this thread  
avatar
  • Kheng
  • Posted: 18 August 2009 05:18 AM
  • Total Posts: 21
  • Joined: 22 August 2006 10:59 AM

I’m trying to write a batch exporter for maya to fbx. I know mel has this command for FBXExport -f filename.fbx but when trying to access it in python like this

import maya.cmds as cmds

cmds.FBXExport( f=’this.fbx’ )

It doesn’t work. Does anyone know why?

Thanks,

Keo



Replies: 0
avatar
  • sublist
  • Posted: 18 August 2009 10:22 PM

As far as i know Python hasn’t implemented fbxexport so far
So you have to use eval.

import maya.mel as mel
mel
.eval("FBXExport -f [filename]")


Replies: 1
/img/forum/dark/default_avatar.png

ahhh, thx! Didn’t know about eval.

Author: Kheng

Replied: 19 August 2009 05:57 PM