Verifies that an object is currently selected.
rhinoscriptsyntax.IsObjectSelected (object_id)
rhinoscript.object.IsObjectSelected (object_id)
object_id |
Required. String or Guid. The identifier of an object. |
True |
The object is selected. |
False |
The object is not selected. |
import rhinocsriptsyntax as rs
# Do something here...
if rs.IsObjectSelected(object):
print "The object is selected."
else:
print "The object is not selected."