"Connect Objects" in a Generator?
-
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?
-
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
-
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?
-
On 29/08/2018 at 02:53, xxxxxxxx wrote:
Hi Rasha, the Connect Object functionality is delivered by the MCOMMAND_JOIN.
Best, Riccardo
-
On 29/08/2018 at 13:29, xxxxxxxx wrote:
Of course. Thanks Riccardo!