For example, in a blank document, I added ‘Layer 01’ and then I ran this python script:
import rhinoscriptsyntax as rs
rs.LayerLocked(‘Layer 01’,True)
After that, when I do the undo command (or Ctr Z), the ‘Layer 01’ stays locked.
In Rhino 5, the ‘Layer 01’ would unlock. Any alternative for this in Rhino 7?
Regards!