One Layer On - Off?

I need to work with only one layer from all the layers that I have in my document and I choosed the option “OneLayerOn” to isolate only the layer I want to work with but seems that I can’t undo the command? I can’t find a way to anulate the command and revert the visibility of the layers like was before activating this command. Any options to turn the other layers back on?

P.S: The OneLayerOff command seems to have other purposes.

The command ShowAll will make all the layers visible again.

Thank you for replay. Indeed it is working but this command it is a little bit tricky to say, because don’t appear in the command toolbar even if I write the entire sentence.

ShowAll

Thanks for the report, I filed two bugs to hopefully make this more easily discovered in the future.
https://mcneel.myjetbrains.com/youtrack/issue/RH-43217
https://mcneel.myjetbrains.com/youtrack/issue/RH-43216

Hi Macuso - using LayerStates may be a way out here.

! _-LayerStateManager _Save "Temp" Enter _OneLayerOn

! _-LayerStateManager _Restore "Temp" _Enter

-Pascal

2 Likes

It would seem that Showall should be added to the drop down list right under One Layer On

1 Like

Or after pressing the OneLayerOn button to change the label of that button in “Return to initial layer visibility” or something similar.

1 Like

Yes please!

This command would be a huge help. the only solution I can think right now is to save a “layer state” to return to after turning off the one layer.

1 Like

bump to this one, it’s so annoying the revert to inital visibility doesn’t exist, makes the onelayeron almost useless

2 Likes

Got that thanks - see if the macro listed above helps in the short term…

! _-LayerStateManager _Save “Temp” Enter _OneLayerOn

! _-LayerStateManager _Restore “Temp” _Enter

RH-75940 Layers: revert OneLayerOn

-Pascal

1 Like

+1 here, definitely need a way to view a single layer, but then revert to seeing all layers that were active before the command. I’m currently working with a 3.5gb file and having every layer active is not an option!

2 Likes

Hi, wondering if 8 years after this was brought up, is there now a way to revert the ‘One layer on’ function? I cannot find the ShowAll command at all.

Dag Joop -

No, RH-75940 is still open and currently on the “Future” list.

For the time being, you need to use the layer state manager to create a state to revert to.
If this is something that you frequently run into, the macros that Pascal posted can be assigned to buttons or aliases.

Note that ShowAll does not revert the “One layer on” function. It simply turns on all layers.
ShowAll is a built-in alias for the -Layer On * EnterEnd macro. It doesn’t autocomplete and needs to be typed completely on the commandline.
-wim

3 Likes

Hoi Wim,

Thanks for the update, I’ll give Pascal’s workaround a go.

@wim Please, This is a very basic function that has been required for many years (looking in forum history at least 8 years). It would be appropriate to prioritize its implementation in Rhino 9 WIP. Layer isolate and unisolate is an absolute CAD standard in AEC workflows.

Thank you very much!

1 Like

Hi @tcisar,

You might grab the Garage plug-in from the Package Manager, and try the LayerWalker command. The command doesn’t have much functionality yet. But it will let you quickly view just one layer without messing with your carefully set layer states.

– Dale

Hi @dale ,

Thank you — I’ve tried your plugin.

What I’m missing is functionality similar to Isolate Layer: when an object is selected, its corresponding layer gets isolated automatically. I was using a similar script in Rhino 7 on Windows, but unfortunately it doesn’t work on macOS, nor in Rhino 8 on either platform.

Can you post this - thanks,

– Dale

I think this was this one: https://developer.rhino3d.com/en/samples/rhinoscript/isolate-layers/

Isolate Layer.rui (10.7 KB)

Is it possible to adjust it for Mac as well?