Verifies that an object is selectable. Objects that are locked, hidden, or on locked or hidden layers cannot be selected.
rhinoscriptsyntax.IsObjectSelectable (object_id)
rhinoscript.object.IsObjectSelectable (object_id)
object_id |
Required. String or Guid. The identifier of an object. |
True |
The object is selectable. |
False |
The object is not selectable. |
import rhinoscriptsyntax as rs
# Do something here...
if rs.IsObjectSelectable(object):
rs.SelectObject( object )