Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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
    • Register
    • Register
    • Login

    No fbx exporter in python library?

    Cinema 4D SDK
    r20 python
    2
    2
    932
    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.
    • R
      Rage
      last edited by

      Hi all,

      I'm trying to export a file to fbx format, I'm using R20. On the graphic user interface there's the option to export as fbx format, while, on the python documentation there's not.
      Here's the reference:

      https://developers.maxon.net/docs/py/2023_2/modules/c4d.documents/index.html?highlight=savedocument#c4d.documents.SaveDocument

      What am I missing?

      1 Reply Last reply Reply Quote 0
      • Y
        y_puech
        last edited by y_puech

        Hi Rage,

        Unfortunately several importers and exporters do not have a constant for their ID. This is the case for FBX.
        The ID for the FBX exporter is 1026370.

        To find the ID of a specific exporter you can use the following code:

        import c4d
        
        saverPlugs = c4d.plugins.FilterPluginList(c4d.PLUGINTYPE_SCENESAVER, True)
        for plug in saverPlugs:
            print('{} : {}'.format(plug.GetName(), plug.GetID()))
        

        I turned the topic into a Q&A. Please remind to use this feature of the forum.

        Former MAXON SDK Engineer

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