Moving grouped objects to new layer
-
I often need to move a grouped object from one layer to another. Is there away to have the group take on the color of the new layer?
-
Change the setting in the layers window via the little submenu to Color by layer.
Yours will look a bit different as this is the PC version.

-
Alternatively - if you don't want to color everything by layer [i.e. only some objects to get their layer's color], then you can use Ruby to get the layer of the selected object[s] and then get the layer.color, from that you can make a new material [named after the layer] using that color's RGB specification, and apply that new material onto the selected object[s].
By naming the material after the layer you can test if that material has been made previously, and reuse the existing material, rather than make a new material every time...I that's the requirement then I can easily post a code-snippet to do this...
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better đź’—
Register LoginAdvertisement