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)
While looking further in the forum, I found this post talking about the Layers panel not refreshing: Bug - Layers Panel Does Not Refresh. I wonder if it could be related to the same problem?