# Assign Objects to Individual Layers

**URL:** <https://discourse.mcneel.com/t/assign-objects-to-individual-layers/7201>\
**Category:** Rhino for Windows\
**Created:** [March 31, 2014, 11:42pm UTC](https://discourse.mcneel.com/t/assign-objects-to-individual-layers/7201 "2014-03-31T23:42:28Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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 1, 2014, 8:05am UTC](https://discourse.mcneel.com/t/assign-objects-to-individual-layers/7201/2 "2014-04-01T08:05:28Z")

</div>

Hi Mathew,

This script will distribute all select-able objects (not hidden or locked) to individual layers with a random color and sequential name.  
[ObjectsToLayers.rvb](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/a/8/a881b3cb1a96663b111b0bd78c4e7a63d433d1a9.rvb) (1 KB)

EDIT: I created an updated script as per request in another topic:

> [@Assign different layers/materials to all items with one click](http://discourse.mcneel.com/t/assign-different-layers-materials-to-all-items-with-one-click/7419/10):
>
> 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

To run it you can drag-drop if over rhino.  
Be aware that with many objects it can be time consuming; make sure to keep a good backup copy of your file.

Let me know what you think.

-Willem

---

_[View the full topic](https://discourse.mcneel.com/t/assign-objects-to-individual-layers/7201)._
