IsObjectSelected

Verifies that an object is currently selected.

Syntax

rhinoscriptsyntax.IsObjectSelected (object_id)

rhinoscript.object.IsObjectSelected (object_id)

Parameters

object_id

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

Returns

True

The object is selected.

False

The object is not selected.

Example

import rhinocsriptsyntax as rs

# Do something here...

if rs.IsObjectSelected(object):

    print "The object is selected."

else:

    print "The object is not selected."

Also See

IsObject

IsObjectHidden

IsObjectInGroup

IsObjectLocked

IsObjectNormal

IsObjectReference

IsObjectSelectable

IsObjectSolid