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
    • Recent
    • Tags
    • Users
    • Login

    Create NGons??

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 321 Views
    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 Offline
      Helper
      last edited by

      On 20/06/2014 at 06:54, xxxxxxxx wrote:

      I know how to create a polygon from scratch but how do you create NGons

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

        On 24/06/2014 at 03:48, xxxxxxxx wrote:

        As far as I know the creation of NGons in python is not supported.
        In C++ it is supported.

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

          On 24/06/2014 at 22:44, xxxxxxxx wrote:

          Thanks for the info. The best way I get this achieved is by creating a "cleanup function" in my code to remove unwanted points.

          #CleanUp function        
          def cleanUp() :
              
                 Ngon_obj = doc.SearchObject('Polygon')
              
                 melt_list = [0]
                 
                 pnts_melt = Ngon_obj.GetPointS()
                        
                 for i in melt_list:
                     
                   melt_pnts = pnts_melt.Select(i)
                     
                 if melt_pnts == True:
                     
                    utils.SendModelingCommand(command = c4d.MCOMMAND_MELT, 
                                           list = [Ngon_obj], 
                                           bc = c4d.BaseContainer(),
                                           mode = c4d.MODELINGCOMMANDMODE_POINTSELECTION,
                                           doc = doc)
          
          1 Reply Last reply Reply Quote 0
          • First post
            Last post