Any method to change selected objects' layer in python script


I am trying to build a script that changes the selected object’s layer into another existing layer, couldn’t find such a thing in the rhinoscriptsyntax documentation.
any Ideas?

thank in advance

Have a look at ObjectLayer.

1 Like

I guess I overlooked this one, works great.
big thanks!