SelectObjectGrip

Selects a single grip owned by an object. If the object's grips are not turned on, grips will  not be selected.

Syntax

rhinoscriptsyntax.SelectObjectGrip (object_id, index)

rhinoscript.grip.SelectObjectGrip (object_id, index)

Parameters

object_id

Required.  String or Guid.  The identifier of the object.

index

Required. Number. The zero-based grip index to select.

Returns

Boolean

True or False indicating success or failure.

Example

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)

Also See

EnableObjectGrips

ObjectGripCount

SelectObjectGrips