Notifications
Clear all

[Closed] [SOLVED] Rename layer by selected objects

Hi there.

I have a scene with hundreds of objects and each in a diferent layer.
I want to rename the layers by the selected objects inside

This is working for one selected object. Even if I have a multiple object selection.

selection[1].layer.setname selection[1].name

Can someone help me to make it work for selected objects?

Thank you!

2 Replies
(
	for o in selection do
	(
		o.layer.setname o.name
	)
)

Thank you miauu!

You helped me save alot of time.

Blessings.