Wish: Layers search

I would like to ask if it’s possible to implement a Layer search box, so that when I write “b” in the field and press Enter, it will mark and expand any layer and sub-layer starting with the letter “b”. Also, if I write “bump”, it should mark any layer and sub-layer that includes that combination, such like layers named “Rear bumper”, “Bumper A1 2023”, “Rubber bump stops”, etc. (similar to how the Command line suggests full command names upon typing their initials).

7 Likes

Hi Bobi -

Thanks, added as RH-73777 Layer: Filter expands to filtered names
-wim

2 Likes

Great, thanks! :slight_smile: My typical files have tens and even hundreds of layers, so that particular search box will definitely help me with finding certain layers.

Along with expanding the layers consisting the key words or letter, could they be marked in some colour to better distinguish them from the rest layers? For example, the “HighlightLayers” script is capable to simultaneously mark multiple layers, except that it does so with pre-selected objects assigned to different layers.
The idea is to be able to write a key word or a single character, then hit Enter and the search box should expand and mark any layer consisting the key word or single character. Note that this should not hide any layers, just expand and mark (select) the layers and sub-layers.

HighlightLayers.py (683 Bytes)

I’ve added that as a comment in that YT item.
-wim

1 Like

Awesome.

Is there a way to select with one command all the objects inside the highlighted layer?

if you right click on that layer you choose “select objects” or “select sublayer objects”. The command I know is “selLayer” and does the same but you need to select again the layer on the dialog box will show up. I hope this helps.

You only need to press the “Select object” icon and it will immediately select all object in the highlighted layers and sub-layers. Hopefully the developers will implement that priceless treasure in the future updates of Rhino. :slight_smile:
Being forced to right-click on the layer to open a pop-up window to be able to press “Select objects” is an extremely cumbersome way to select objects.

1 Like

Where is the “Change object layer” button on the Layers panel? This is one of the most important buttons, yet it’s missing there. Here is how it should look like (I edited my picture above):

Rhino 8:

– Dale

1 Like

Great to see this button finally implemented in Rhino 8. I have been asking for it since the Rhino 5 days. :slight_smile: If I’m not mistaken, it was existing in earlier Rhino versions like Rhino 2 or 3. Or at least this is what my memory tells me.

It would be great if there was an alias for this.

_ChangeLayer and _ ChangeToCurrentLayer.

I would like to change the object to a highlighted layer, I would not like to change the object to a current layer

Does not _ChangeLayer let you select a target layer?

Yes, let me, but I want to avoid more clicks and have an alias to change an object with an alias to a highlighted layer.

If I understand your request correctly, you want ChangeLayer to work from within the layers panel, would clicking the layer in the panel (as opposed to the pop-up) work for you? I feel like that may be a nice enhancement, because the pop-up panel doesn’t remember the last picked layer (meaning you have to expand the sublayers for every command activation).

Try ObjectsToHighlightedLayer.py (584 Bytes).

Thank you AMG, for me this is very useful! bless