Is there a way to click an object and auto select the it's layer?

Hi all,

I wonder if there is a way to auto select the layer with one click on the object?
I have so many layers in my model and it takes me awhile to go thru all my layers and toggle on/off the lightbulb.

Thanks in advance.

Maybe this?

1 Like

Hi Hogan - right now, only in the layer panel, in the tools menu:

Here’s a python that will do that if you put a macro to run it on a button or alias - (683 Bytes)

To use the Python script use RunPythonScript, or a macro:

_-RunPythonScript "Full path to py file inside double-quotes"



… and, FWIW, in Rhino 8, there’s the HighlightObjectLayers command.

Hi Pascal,

Thank you! This is exactly what I am looking for. Appreciate it!

Thanks you @wim