Selects a single grip owned by an object. If the object's grips are not turned on, grips will not be selected.
rhinoscriptsyntax.SelectObjectGrip (object_id, index)
rhinoscript.grip.SelectObjectGrip (object_id, index)
object_id |
Required. String or Guid. The identifier of the object. |
index |
Required. Number. The zero-based grip index to select. |
Boolean |
True or False indicating success or failure. |
import rhinoscriptsyntax as rs
obj = rs.GetObject("Select curve", rs.filter.curve)
if obj:
rs.EnableObjectGrips( obj )
count = rs.ObjectGripCount( obj )
for i in xrange(0,count,2): rs.SelectObjectGrip(obj,i)