Highlight selected objects in Layers

As with programs like Cinema 4d, when an object or group of objects are selected, it would be very helpful to see this status with some type of indicator in the Layers window. Anyone have a way to make this happen? Its not enough to see a single layer in Properties.

Hi Frank - that is available in the tools menu of the layers panel - the hammer - ‘Select object layer’. If all selected objects are on one layer, then the layer pane at the bottom of the Rhino window shows the object(s) layer.

-Pascal

I think I understand your answer, but when I am selecting objects across many different layers, I would like to instantly see all of these layers highlighted to confirm my selection etc. Thank you!

Hello - yeah, it is not automatic, you need to ask by accessing that menu.

image

-Pascal

1 Like

Wish for automatic highlight of the layers when object is selected.
Spend too much time figuring out where things went.
Especially after join or boolean commands.
Would like to see some improvement here.

I’m not sure what the thoughts are on this one. There’s a YT item for making the tool that Pascal shows above into a command - that’s on the list for RH7 - RH-39104

Automatic highlighting also had a YT item (RH-25723) but that was closed with Won’t fix.

Toshiaki, automatic highlighting of the layer(s) of selected objects would mean that collapsed layers would be expanded and the list of layers possibly scrolled to show the highlight. This would happen every time an object was selected. In a file with a limited number of layers, that might work, but generally, this would be very disruptive.

When the Select Object Layer is made into a command, the user can call that when needed. Also, the status bar shows the full “path” of the layer a selected object is on. While the status bar might show this clipped for long names, hovering the mouse pointer over this field shows the full name.

Hi @Toshiaki_Takano,

In case you are using Rhino 6 / Windows version, try this script. It will select all layers of the selected objects and expand the layer stack as-needed. There is also an option to go back to original layer panel state in case you want to just quickly look and not mess things up by expanding the entire structure.

It can be put into button or macro, if needed, so it can be one quick key-press away… The Layer selection tools have been added to Rhino 6 RhinoScript, so it was not possible to make it work before. Hope that helps.

SelectObjectsLayers.rvb (1.7 KB)

–jarek

1 Like

Any guidance on how to install this particular .rvb file? As I have not done this before and I read there are variables which need to be clarified etc. Thank you!

Hi @frank1,

Try this one: SelectObjectsLayers.rvb (1.8 KB)

Save somewhere on your HD and then drag-and-drop into Rhino vport.
From there, it will add an Alias: SelectObjectsLayers that should autocomplete and run the script.
Then you can add this alias to a keyboard shortcut or a toolbar icon…

–jarek

Auto collapse would be a bit annoying…

It’d be great if just even the shown parent layer would be highlighted or have a dot or some indicator next to the name. or perhaps make the fonts underlined.
When uncollapsed more detailed highlights are found.

Any step towards easier management for not so management talented user.

This is great and it works perfectly. Now I wonder how to make it into a button. Failing to find the right process (I can make a new button etc but cant assign this function to it!. Thanks

Once you have a button, Ctrl+Shift+LMB on it to edit, then in the Command field just paste:
SelectObjectsLayers

You can also assign that macro to a key shortcut like Ctrl+L etc. for quick, one-shot access.

hth,

–jarek

Thank you!

Hi Jarek,

The file you have uploaded seems to not exist anymore, any chance you could upload so i can test?

Thanks!

Hi Stephen,

here you go: SelectObjectsLayers.rvb (2.2 KB)

@brian - is there a time limit for hosting uploaded files? This is the first time I see a file uploaded having a dead/expired link. In fact, I think some older files are still downloadable.

–jarek

Jarek,

Beast! TY! Works like a charm.

Hi Jarek, Discourse is in the process of migrating uploads to a different server and somewhere along that road something went wrong. They are in the process of fixing this now.
wim

1 Like

The script originally posted had a bug that would cause some layers in multi-nested structures not to get selected (the parent layers would not expand, therefore preventing selection). Here is a version with the bug fixed, for anyone interested that is using the script:
DIG_SelectObjectsLayers.rvb (2.3 KB)

The command/alias is: DIG_SelectObjectsLayers

–jarek

2 Likes

Does this work for a mac version?