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

    "Connect Objects" in a Generator?

    PYTHON Development
    0
    5
    2.6k
    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
      Helper
      last edited by

      On 28/08/2018 at 23:16, xxxxxxxx wrote:

      Is there a way to do the equivalent of "Connect Objects" (or "Connect and Delete") in a Python Generator?

      I am creating a hierarchy of groups of groups of polys, and the viewport is very slow. Perhaps it would be faster if I could convert it to a single poly object and optimize it?

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

        On 29/08/2018 at 02:18, xxxxxxxx wrote:

        Hi RashaMatt, thanks for writing us.

        With regard to your support request there are two options either viable.

        The first is to take advantage of the modelling commands delivered in Cinema 4D by using the c4d.utils.SendModelingCommand() and use the appropriate command to achieve the desired behavior.

        The second option is to hard code the merging operation directly in the generator by accessing the information about mesh points position and mesh polygons index for each entity you want to get merged, then by merging this data in a single mesh and finally by disposing the original meshes (if really needed).

        Best, Riccardo

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

          On 29/08/2018 at 02:21, xxxxxxxx wrote:

          I did not see the "Connect Object" modeling commands represented in MCOMMAND (https://developers.maxon.net/docs/py/2023_2/consts/MCOMMAND.html)

          Is it available somewhere that I missed?

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

            On 29/08/2018 at 02:53, xxxxxxxx wrote:

            Hi Rasha, the Connect Object functionality is delivered by the MCOMMAND_JOIN.

            Best, Riccardo

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

              On 29/08/2018 at 13:29, xxxxxxxx wrote:

              Of course.  Thanks Riccardo!

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