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

    Get and select certain points

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 208 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 26/05/2014 at 02:10, xxxxxxxx wrote:

      Say I have a object with 100 points and only want to select point 1,5,67,82

      How would I do that with python???? 😊

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

        On 26/05/2014 at 04:10, xxxxxxxx wrote:

        Hi,

          
          #pointindices you want to select  
          PointList=[1,3,7]  
          #base_select_object  
          select_points=op.GetPointS()  
            
          for i in PointList:  
              select_points.Select(i)  
                
                
          c4d.EventAdd()  
        

        Cheers,
        Martin

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

          On 26/05/2014 at 05:01, xxxxxxxx wrote:

          @monkeytack

          Thanks for the quick reply. You _<_img src="http://www.c4dcafe.com/ipb/public/style_emoticons/default/thisrocks.gif" border="0" alt=":thisrocks:" title=":thisrocks:" /_>_

          Thank you&n;_<_img src="http://www.c4dcafe.com/ipb/public/style_emoticons/default/signthankspin.gif" border="0" alt=":signthankspin:" title=":signthankspin:" /_>_" />

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