Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 4163

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

$
0
0

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!

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 4163

Latest Images

Trending Articles



Latest Images