I possibly found a strange bug. After importing a STL file, I can create a named layer and it will appear in the Layers panel but if I purge all layers and try running the same script again, the layer gets created again (which is good) but is not showing in the Layers panel anymore? Strangely, it also seems to be related to the importation of STL files (and probably other Rhino calls?)
The following script reproduces the problem. AddLayersTest.py (1.2 KB)
I have attached a small .stl file for the test. Any.stl (1.1 KB)
Anybody has an idea of what is going on?