# Assign different layers/materials to all items with one click

**URL:** <https://discourse.mcneel.com/t/assign-different-layers-materials-to-all-items-with-one-click/7419>\
**Category:** Rhino for Windows\
**Created:** [April 9, 2014, 6:27pm UTC](https://discourse.mcneel.com/t/assign-different-layers-materials-to-all-items-with-one-click/7419 "2014-04-09T18:27:38Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![Willem](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/willem/32/554347_2.png) [@Willem](https://discourse.mcneel.com/u/Willem)\
**Post date:** [April 12, 2014, 7:49pm UTC](https://discourse.mcneel.com/t/assign-different-layers-materials-to-all-items-with-one-click/7419/10 "2014-04-12T19:49:11Z")

</div>

> [@hannesgrebin](#):
>
> Does either one of these scripts recognize even groups, if you group beforehand?

Hi Hannes,

I could not resist and made this script that will allow for grouped objects to be places together on a new layer:

[ObjectsGroupsToLayers.rvb](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/2/7/27173d308100e7b4458d246f32463e3e8f581d8b.rvb) (2.6 KB)

Let me know if it does what you need.

HTH  
-Willem

---

_[View the full topic](https://discourse.mcneel.com/t/assign-different-layers-materials-to-all-items-with-one-click/7419)._
