Returns the object type.
rhinoscriptsyntax.ObjectType (object_id)
rhinoscript.object.ObjectType (object_id)
object_id |
Required. String or Guid. The identifier of the object. |
Number |
The object type if successful. The valid object types are as follows:
|
import rhinoscriptsyntax as rs
obj = rs.GetObject("Select object")
if obj:
objtype = rs.ObjectType(obj)
print "Object type:", objtype