V6 rs.LayerVisible() not undoable

Just open a new file from one of the standard templates and then run the following from the script editor:

import rhinoscriptsyntax as rs
rs.LayerVisible("Layer 01",False)
rs.LayerVisible("Layer 03",False)

That should turn off Layer 01 and Layer 03. Now hit the Undo button or Ctrl+Z. It says “Undoing EditPythonscript”, but the layers don’t turn back on.

In V5, the same script responds correctly to Undo, the layers become visible again.

I didn’t see a youtrack item for this, but maybe I missed it.


Hi Mitch, I see that, thanks.


No idea when this might be addressed?

Possibly not before some font stuff is done first, but @Alain might know more.

Hi Mitch,
I just fixed this and it will go in SR11.

1 Like

Thanks Alain!!