I can't undo a python script that lock layer in Rhino 7

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?


Hi Etienne - I see that, thanks, I do not know why this changed but I’ll gert it on the list. I do not, off hand, know of a workaround.

RH-71010 Undo python/rs script


1 Like