-SelLayer with Current option - confusing result

@dale @wim
-SelLast with Current option selects all objects on the layer(s) of the current selected object(s) AND all objects on the current layer. This is not useful and is likely to cause problems by selecting unintended objects. BETA (9.0.26230.12303, 2026-08-18

It appears that two similar but different requests for a “Current” option were merged. From (bolding added) https://mcneel.myjetbrains.com/youtrack/issue/RH-75788

Pascal Golay (retired) Commented almost 3 years ago (edited)
This is related but I would say not the same as rh-78335 - that one is about being able to accept the current object selection (pre-selection) to determine the layers to select, regardless of the current layer.

Dale Fugier Commented 2 days ago
Added a new Current one-shot command line option which selects all objects that reside on the current layer.

Perhaps -SelLayer needs two different “Current” options (in addition to Pick):
CurrentObject which selects all objects on the layer(s) of the currently selected object(s)
CurrentLayer which selects all objects on the current layer

Test file: -SaveOpition Test.3dm (91.9 KB)

Hi,

i was able to repeat this here in the latest BETA, exactly as you describe. With one of two objects on a layer preselected and a different layer current, -SelLayer Current selects both objects on the preselected object’s layer plus everything on the current layer, so it is running the old Pick-with-preselection behavior and the new current-layer behavior together. With nothing preselected it behaves correctly. i’ve added this to the conversation on RH-75788 along with your CurrentObject / CurrentLayer suggestion. Thanks for reporting

RH-75788 is fixed in Rhino BETA