Unselects a single selected object.
rhinoscriptsyntax.UnselectObject (object_id)
rhinoscript.object.UnselectObject (object_id)
object_id |
Required. String or Guid. The identifier of the object to unselect. |
Boolean |
True or false indicating success or failure. |
import rhinoscriptsyntax as rs
rs.Command("Line 0,0,0 5,5,0")
obj = rs.FirstObject()
if obj: rs.SelectObject(obj)
#Do something here...
rs.UnselectObject( obj )