Bug? SelLayer can't specify a layer when an object is selected

In Rhino 8 select an object and run a command that does the following:

RhinoApp.RunScript($"-SelLayer \"{layer.FullPath}\"", false);

Rhino 8 outputs this if an object is already preselected:

Unknown command: “Layer Name”

In Rhino 7 it would select the objects on that layer.

The Rhino 8 command documentation says SelLayer skips picking a layer if an object is pre-selected.

But this prevents “-SelLayer” from selecting a layer when an object is pre-selected .
Is this a bug or in intended?

Hi @Cristopher_Russ,

Looks like something was broken during the dialog replacement in V8. I’ve logged an issue so we can fix.


– Dale