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

    Python: Selection tag

    Cinema 4D SDK
    python
    4
    5
    1.3k
    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 a_block

      Hello
      In python, how to select the polygons contained in a selection tag.
      Thanks

      1 Reply Last reply Reply Quote 0
      • merkvilsonM
        merkvilson
        last edited by

        Probably there is a better way but you can try this method

        selectionTag = op.GetTag(5673)
        c4d.CallButton(selectionTag , c4d.POLYGONSELECTIONTAG_COMMAND3)

        1 Reply Last reply Reply Quote 2
        • M
          mp5gosu
          last edited by mp5gosu

          SelectionsTags return BaseSelects.
          You can then iterate over all polygons of your object and select those, that are contained in a BaseSelect.

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

            Solved;) Thank you both

            1 Reply Last reply Reply Quote 0
            • a_blockA
              a_block
              last edited by

              Hi,

              while I'm glad, this was already solved, I just wanted to add a link to an old thread in the archive, which might be helpful for future readers due the contained code snippet: Select polygons from Selection Tag.

              Cheers,
              Andreas

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