Unlocks a previously locked object. Locked object are visible, and they can be snapped to. But, they cannot be selected.
rhinoscriptsyntax.UnlockObject (object_id)
rhinoscript.object.UnlockObject (object_id)
object_id |
Required. String or Guid. The identifier of the object to unlock. |
Boolean |
True or false indicating success or failure. |
import rhinoscriptsyntax as rs
obj = rs.GetObject("Select object to lock")
if obj: rs.LockObject(obj)
#Do something here...
rs.UnlockObject( obj )