Macros to change object layer

Any help on changing the last selected object to another layer.

I’m using this but it doesn’t select the layer. . I have to physically click the layer choice.

'_SelLast _changelayer -Layer “1”

Hello - put just the entire layer name inside the “double quotes”.
! _-ChangeLayer "1"
The quotes are really only needed if there is a space in the layer name but it is a good habit.

-Pascal

1 Like

you have to use the minus - infront of _changeLayer to suppress the dialog and get a pure commandline based command - and as Pascal wrote - if the layername has a space you need quotes.
like this

_sellast -_changeLayer "Layer 02" _selNone

1 Like

Beautiful! Thanks for the help!