_-OneLayerOn _SelectObject _Pause _Enter
I’m trying to create an alias that turns off all layers except for the layer of the selected object. The current alias works, but only if nothing is selected beforehand. I want it to function correctly in both cases: whether objects are already selected or selected after initiating the alias."