Buglet in rs.GetLayers()

With the sample file below, run the following code:

12Layers.3dm (2.2 MB)

import rhinoscriptsyntax as rs
layers=rs.GetLayers("Select all of the layers in the list")

First you will see this:

Layer 00 appears to be selected
Now hold Shift down and go to the last layer in the list and click so as to select all the layers between

But, instead of selecting the whole list, it does this:

So the first layer is not really “selected” even though it is highlighted.

OK, with Layer 11 so selected, go back up to the top and with the Shift key, pick Layer 00 - i.e. still trying to select the whole list. You get this:


In fact you need to click twice on the first selected layer in order to really select it. Then you can Shift+click on the last desired layer to select the layers in between.

Hi @Helvetosaur,

I see this - https://mcneel.myjetbrains.com/youtrack/issue/RH-81755


– Dale