2 Macro requests

Good morning friends,

Wondering if there is a macro that would highlight (select) any objects in whatever layer happens to be current?

Also, a macro that would move whatever object happens to be selected in to whatever layer happens to be current?

Thank you!

Well for the 2nd request there already is a command, “ChangeToCurrentLayer.” The other would be pretty easy to do.

Not sure about a macro as SelLayer does not have an option “CurrentLayer”, but a 2 line script will do it:

import rhinoscriptsyntax as rs
rs.SelectObjects(rs.ObjectsByLayer(rs.CurrentLayer()))

Thank you, guys. Really appreciate it.