Highlight selected objects in Layers


(Frank) #1

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.


(Pascal Golay) #2

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


(Frank) #3

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!


(Pascal Golay) #4

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

image

-Pascal


#5

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.


(Wim Dekeyser) #6

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.


(Wim Dekeyser) #9

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.


#10

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


Layer Identification Using Part
(Frank) #11

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!


#12

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


#13

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.


(Frank) #14

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


#15

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


(Frank) #16

Thank you!