Unlocks one or more objects. Locked object are visible, and they can be snapped to. But, they cannot be selected.
rhinoscriptsyntax.UnlockObjects (object_ids)
rhinoscript.object.UnlockObjects (object_ids)
object_ids |
Required. List. A list of Guids identifying the objects to unlock. |
Number |
The number of objects unlocked if successful. |
import rhinoscriptsyntax as rs
objs = rs.GetObjects("Select objects to lock")
if objs: rs.LockObjects(objs)
#Do something here...
rs.UnlockObjects( objs )