Export FBX files



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 23/05/2012 at 03:10, xxxxxxxx wrote:

    Hello all,
    I am developing a small plugin for c4d r13, in which I basically want to export a scene as a .fbx file.

    In python code, I do the following:

    ##############################################
    fbx_plugin_id = 1026370
    fbx_filepath = "c:\\model.fbx"
    container = c4d.plugins.GetWorldPluginData(fbx_plugin_id)
    for id, value in container:
    if id == c4d.FBXEXPORT_ASCII:  container[id] = 0
    elif id == c4d.FBXEXPORT_BAKE_ALL_FRAMES: container[id] = 0
    elif id == c4d.FBXEXPORT_SAVE_NORMALS: container[id] = 1
    elif id == c4d.FBXEXPORT_ANIMATION: container[id] = 1
    elif id == c4d.FBXEXPORT_TEXTURES: container[id] = 1
    elif id == c4d.FBXEXPORT_EMBED_TEXTURES: container[id] = 1
    c4d.plugins.SetWorldPluginData(fbx_plugin_id, container)
    c4d.documents.SaveDocument(doc,fbx_filepath, c4d.SAVEDOCUMENTFLAGS_DONTADDTORECENTLIST, fbx_plugin_id)
    ################################################

    As you can see, I basically set the configuration parameters and then save the file.

    The problem is that the export parameters are not respected in the resulting fbx file. 
    Instead, the used parameters are the one which I can set from the "FBX export settings" window which is opened when I export "manually" from the c4d menu.

    Anyone can help me?
    Thanks in advance for your answers.

    Jack



  • On 28/09/2015 at 08:07, xxxxxxxx wrote:

    Hi,

    I am following this old thread since I am also working on a plugin that exports FBX files from C4D and I can't find how to define the export options. I don't have much infos to add, the previous post says it all.

    Thanks in advance,

    Regards,
    Aurélien



  • On 29/09/2015 at 05:18, xxxxxxxx wrote:

    Hi Aurélien,

    welcome to the Plugin Café forums 🙂
    Please have a look at the How can I one-click the fbx import? thread. I think, it should answer your question.



  • On 21/10/2015 at 00:42, xxxxxxxx wrote:

    Hi Andreas,

    Thanks you very much for your quick answer (and sorry for my late reply, it seems that I missed the notification..). 
    You are right, I finally found a way to set the export options thanks to the thread you mentionned!

    Thanks! 🙂
    Aurélien


Log in to reply