Highlighting layer in tree of currently selected object

This seems like a good solution to managing multi-layer selection scenarios (and in general) - note the subtle layer highlighting on the left. Combined with an option to “jump to” the active layer(s) might work really well.

This is how Photoshop handles it:

There’s a command for this so what’s the problem?

_HighlightObjectLayers

Hi Martin -

The request is that this happens automatically any time an object is selected…
-wim

This topic is 11 years old and no one mentioned the command until now… that is a bit weird don’t you think?

-wim

Interesting. Browser didn’t find it.

Haha.

image

image

Yes exactly, this is very very basic and fundamental, to have the layers auto-highlight without needing to run special commands.

What is the expected benefit?

For a simple example, when working on multiple similar-looking objects scattered across many layers, it is sometimes useful to see if the object you’re editing is on the correct layer. It would be great to do this at a glance, without having to break your “flow” by running extra commands. This seems like a good quality of life improvement and general UX feature, which is probably why, as far as I can tell, all 2D and 3D programs have incorporated it on some level.

Here it is in Zbrush

I have this layer information at the bottom of the screen…

With all due respect, this approach seems a bit hacky and could be streamlined/implemented better. Why are we getting object-layer information from the bottom of the screen when the layers are actually shown on the right? Wouldn’t it make more sense to access this information directly from the layers panel? Even better, using an auto-highlight feature would make everything much simpler and more user-friendly.

This is not a hack.

I find the layer info at the bottom really useful because quite often I don’t need the layer panel and I hide it temporarily.

The “quick” layer popup window, on the status bar, has been in Rhino since V1.0.

Initially, the “quick” layer popup window was useful because Rhino 1.0 had a modal layer dialog. Later, when the docking layer panel was introduced, it was (and still is) useful when screen real estate is at a premium.

We will make a run at wiring up the suggested feature, RH-85812, in Rhino 9. There are lots of other layer panel wishes we’ll be considering too.

Personally, I’d find this feature annoying, constantly scrolling a long list of layers and/or expanding layer branches that have been collapsed, every time I pick an object. But my opinion doesn’t count.

If implemented, you’ll be able to turn this feature on and off.

Thanks,

– Dale

I have a script to scroll to a layer. In a large layer list, it can be nice not having to scroll everything…

import scriptcontext

def DoSomething():
    
    # set full path of the layer
    layer_path = "Layer 05::TestLayer"
    
    # find layer index
    index = scriptcontext.doc.Layers.FindByFullPath(layer_path, -1)
    if index < 0: 
        print "'{}' not found".format(layer_path)
        return
    
    # select in layer dialog, unselect others so it scrolls
    scriptcontext.doc.Layers.Select([index], True)
    
DoSomething()

Sorry I meant hacky as it relates to the topic of this thread. It is really interesting to learn about the history of Rhino development, thank you for sharing, Dale.

Amazing, a thousand times thank you!!!

I was about to make a new wish list post about this topic and then ran into this page, so I’ll throw my hat in the ring, just one humble opinion from someone who uses Rhino every day for work.

The UX currently has 2 states the layer panel will show: Hover and Click.
Hover is the light blue, and Click is the darker light blue.

Currently, the HighlightObjectLayers function moves the Click state around through the layer panel to whatever layer needs to be highlighted based on the model selection, unraveling the layer heirachy.

What I would introduce (if it were up to me), would be a new state I would call Select, it would be the same color as the model selection (the default is yellow) and whenever anything is selected the layer would be highlighted. I would also add a feature that would not allow the Select state to unravel the layer hierarchy upon selection. Instead it would keep the layer hierarchy in its current state and only select the visible parent. If the layer window is already unraveled (as in the image below) I would select both the parent and children layers.

I hope this makes sense!
Thanks