ObjectGripCount

Returns the number of grips owned by an object.

Syntax

rhinoscriptsyntax.ObjectGripCount (object_id)

rhinoscript.grips.ObjectGripCount (object_id)

Parameters

object_id

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

Returns

Number

The number of grips if successful.

None

If not successful, or on error.

Example

import rhinoscriptsyntax as rs

obj = rs.GetObject("Select object")

if rs.ObjectGripsOn(obj):

    print "Grip count =", rs.ObjectGripCount(obj)

Also See

EnableObjectGrips

ObjectGripsOn

ObjectGripsSelected

SelectObjectGrips

UnselectObjectGrips