On 02/01/2017 at 07:40, xxxxxxxx wrote:
Hi there,
I'm creating a python script that exports a scene to FBX that I want to use by running C4D with -nogui from the command line.
The issue I get is that calling
documents.SaveDocument(documents.GetActiveDocument(), [PATH], [FLAGS], FBX_EXPORTER_ID)
( with FBX_EXPORTER_ID = 1026370 )
returns true but does not write a file, whereas
documents.SaveDocument(documents.GetActiveDocument(), [PATH], [FLAGS],c4d.FORMAT_C4DEXPORT)
does work as expected.
Using c4d.FORMAT_OBJ does not work either.
The same script used in a command plugin exports to FBX properly when C4D is not in background mode.
I'm guessing this is a bug, or am I doing anything wrong ?
here's the script : https://gist.github.com/anonymous/c971f8f431de9de41ba632ce6d6d9ab2
Thanks !