PDA

View Full Version : Export Collada or Fbx with a specified filename



Max33
11-15-2013, 07:48 AM
Hello,

I would like to do a python script which exports the scene in a fbx file with a SPECIFIED filename.
I don't want the FBX export panel to open. I just want to be able to specify the filename in the script (for example C:\Test\test.fbx)

I tried
lwsdk.command("Generic_ExportCOLLADA C:\Test\test.fbx")
but this is equivalent as
lwsdk.command("Generic_ExportCOLLADA")
it just open the panel.

Does anyone know how to do that?

Another option would be to be able to simulate user actions via python scripting
once the Export FBX panel is opened, I would need to
- set the "FBX Filename" control in the panel "Export FBX"
- simulate a click on "OK"
Is it possible to do that?

Thanks.