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
    • Login

    Triangulate geometry when exporting a fbx

    Cinema 4D SDK
    r20 python
    2
    2
    765
    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'd like to triangulate the geometry when exporting a fbx from python. I've been searching the documentation for the id for the "triangulate geometry" option, but it looks like there's nothing about it. Also, the fbx exporter has no id like the others. For example the object export is c4d. FORMAT_OBJ2EXPORT while the fbx export is 1026370

      Here's a piece of my script

      container = c4d.plugins.GetWorldPluginData(1026370)
      for id, value in container:
          if id == c4d.FBXEXPORT_TRIANGULATE_GEOMETRY:  container[id] = 1
      ...
      
      1 Reply Last reply Reply Quote 0
      • M
        m_adam
        last edited by

        Hi @Rage, I think this question is related to the another topic you posted, so I will not explain again how import/export works in CInema 4D.

        In your case, you have to use FBXEXPORT_TRIANGULATE and not FBXEXPORT_TRIANGULATE_GEOMETRY.
        And yes you are right, currently, no symbol is defined for the FBX exporter so you have to use 1026370 directly.

        Cheers,
        Maxime.

        MAXON SDK Specialist

        Development Blog, MAXON Registered Developer

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