Wish - select object layer - command

Hello,
possibly a stupid question, I am working on a file with many layers and sublayers, so am using the layer tools to select the layer of a selected object quite often. Is there also a command for that, so I can spare a few clicks?

thanks for any feedback

Andreas

Hi Andreas - this should help.

HighlightLayers.py (683 Bytes)

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

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

RH-61270 Layers: Highlight layers of selected objects

-Pascal

2 Likes

that would be awesome !! Thanks Pascal!

SetLayerToObject command makes the layer of a selected object the current layer. I made two-letter keyboard shortcuts for layer manipulation:
LA '_-Layer _On * _Enter
LC '_ChangeToCurrentLayer
LF '_OneLayerOff
LM '_MatchLayer
LO '_OneLayerOn
LS '_SetLayerToObject

You can make and change the keyboard shortcuts by running Options command and clicking Keyboard button in Options dialog box. By the way, name of current layer and its color are displayed in the Status bar (at the bottom of the Rhino window).

This crashes rhino (OSX) for me - v6.30.20288.16412

Hm - I’ll check… thanks for the report.
RH-61309 RunPythonScript - crash on mac

-Pascal