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

    ID_MODELING_LOOP_TOOL still broken ?

    Cinema 4D SDK
    r20
    2
    4
    682
    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.
    • A
      arsen
      last edited by m_adam

      Hi.
      MODELING_LOOP_TOOL still broken or am I doing something wrong?

      import c4d
      from c4d import gui, utils
      
      doc = c4d.documents.GetActiveDocument()
      obj = doc.GetActiveObject()
      
      bc = c4d.BaseContainer()
      bc.SetData(c4d.MDATA_LOOP_SEL_STOP_AT_BOUNDS, True)
      bc.SetData(c4d.MDATA_LOOP_SEL_SELECT_BOUNDS, False)
      bc.SetData(c4d.MDATA_LOOP_SEL_GREEDY_SEARCH, False)
      
      bc.SetData(c4d.MDATA_LOOP_SELECTION, c4d.SELECTION_NEW)
      bc.SetData(c4d.MDATA_LOOP_LOOP_EDGE, 1)  # ? index or ..
      
      utils.SendModelingCommand(command=c4d.ID_MODELING_LOOP_TOOL,
                                list=[obj],
                                mode=c4d.MODELINGCOMMANDMODE_EDGESELECTION,
                                bc=bc,
                                doc=doc,
                                flags=c4d.MODELINGCOMMANDFLAGS_0)
      
      c4d.EventAdd()
      
      

      Different values ​​give the same loop selection.
      Thanks!

      1 Reply Last reply Reply Quote 0
      • M
        m_adam
        last edited by

        Hi just to let you know we didn't forget you, I've reached the development team.

        Cheers,
        Maxime.

        MAXON SDK Specialist

        Development Blog, MAXON Registered Developer

        1 Reply Last reply Reply Quote 0
        • M
          m_adam
          last edited by

          Unfortunately, while some fixes have been done, it's still broken so the command is not consistent in all cases so you can't rely on it.

          In any case, the development team is aware of it, hopefully, it will be addressed soon.
          I will update the topic once it's done.

          Cheers,
          Maxime.

          MAXON SDK Specialist

          Development Blog, MAXON Registered Developer

          A 1 Reply Last reply Reply Quote 0
          • A
            arsen @m_adam
            last edited by

            @m_adam
            Anyway, thanks for your time!

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