Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Export FBX files

    Scheduled Pinned Locked Moved PYTHON Development
    4 Posts 0 Posters 452 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

            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

            1 Reply Last reply Reply Quote 0
            • First post
              Last post