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

    Convert object

    Cineware SDK
    2
    3
    1.1k
    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.
    • Passion3DP
      Passion3D
      last edited by

      Hi

      The documentation of Melange is not very clear, and there is only one example 😞

      Can we convert a parametric object into a polygonal object, as we do with "makeeditable" in a plugin?

      1 Reply Last reply Reply Quote 0
      • r_giganteR
        r_gigante
        last edited by r_gigante

        Hi Passion3D, thanks for reaching out us.

        With regard to your question, please note that being the Melange API designed with the intent of enabling the data transfer from Cinema 4D to other 3rd-party host application it lacks some group of functionalities which are indeed part of the sole Cinema 4D API like, for example, generating geometries on-the-fly.
        Being said this, any parametric object present in a scene saved using the "Save Project For Melange..." will be saved in the file together with its caches, allowing methods like to BaseObject::GetCache() and BaseObject::GetDeformCache() to be used.
        On the contrary, if a file is not saved using the "Save Project for Melange..." or if "Save Polygons for Melange" is not enabled in the Preferences->Files section in Cinema 4D before an "ordinary" save is fired, the parametric objects present in the file won't be provided with the caches computed by Cinema and, consequently, there will be no chances to access those data.

        To answer your question, in the end, no chance to "makeeditable" rather to access the data belonging the cache when available in the .c4d file.

        Hoping that this few notes help, feel free to get back for any further comment.

        Best, Riccardo

        1 Reply Last reply Reply Quote 1
        • Passion3DP
          Passion3D
          last edited by

          Unfortunately, that's what I thought 😞
          So I'll have to write a MakeEditable function 😉

          Thanks Ricardo

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