Set current layer by name

I have layer named Curve, is there to set surrent layer to Curve using command

For example

! _-Layer _Current _List _Curve

Hi Gknu2013 -

I’m not completely sure what this question is about…
From Rhino 8, Grasshopper objects can have attributes, such as the layer. You can set that attribute and then bake to the Rhino document.
-wim

I have solution

you have to creae button

!-_Layer _Current “Leader” _Enter _Leader