UnselectObjectGrip

Unselects a single grip owned by an object.

Syntax

rhinoscriptsyntax.UnselectObjectGrip (object_id, index)

rhinoscript.grips.UnselectObjectGrip (object_id, index)

Parameters

object_id

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

index

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

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.UnselectObjectGrip( obj, i )

Also See

EnableObjectGrips

ObjectGripCount

UnselectObjectGrips