# Any method to change selected objects' layer in python script

**URL:** <https://discourse.mcneel.com/t/any-method-to-change-selected-objects-layer-in-python-script/65299>\
**Category:** Scripting\
**Tags:** python, rhinoscriptsyntax\
**Created:** [June 18, 2018, 9:29am UTC](https://discourse.mcneel.com/t/any-method-to-change-selected-objects-layer-in-python-script/65299 "2018-06-18T09:29:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kinan.Fleihan](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/kinan.fleihan/32/727283_2.png) [@Kinan.Fleihan](https://discourse.mcneel.com/u/Kinan.Fleihan)\
**Post date:** [June 18, 2018, 9:29am UTC](https://discourse.mcneel.com/t/any-method-to-change-selected-objects-layer-in-python-script/65299/1 "2018-06-18T09:29:55Z")

</div>

Hi,

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

---

<div class="post-metadata">

**Author:** ![siemen](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/siemen/32/490472_2.png) [@siemen](https://discourse.mcneel.com/u/siemen)\
**Post date:** [June 18, 2018, 10:28am UTC](https://discourse.mcneel.com/t/any-method-to-change-selected-objects-layer-in-python-script/65299/2 "2018-06-18T10:28:26Z")

</div>

Have a look at [ObjectLayer](http://developer.rhino3d.com/api/RhinoScriptSyntax/#collapse-ObjectLayer).

---

<div class="post-metadata">

**Author:** ![Kinan.Fleihan](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/kinan.fleihan/32/727283_2.png) [@Kinan.Fleihan](https://discourse.mcneel.com/u/Kinan.Fleihan)\
**Post date:** [June 18, 2018, 11:01am UTC](https://discourse.mcneel.com/t/any-method-to-change-selected-objects-layer-in-python-script/65299/3 "2018-06-18T11:01:25Z")

</div>

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