Returns the number of grips owned by an object.
rhinoscriptsyntax.ObjectGripCount (object_id)
rhinoscript.grips.ObjectGripCount (object_id)
object_id |
Required. String or Guid. The identifier of the object. |
Number |
The number of grips if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
obj = rs.GetObject("Select object")
if rs.ObjectGripsOn(obj):
print "Grip count =", rs.ObjectGripCount(obj)