Select objects by layer name from object properties

Hello guys,

Is it possible to make a script that selects all objects with the same layer name in their object properties window ? Can you guys help me with this?

A terrible bug just occurred that lost all my layers from the layer mode so I have no previous made layers or objects but I can see the objects in Hierarchy mode. I noticed that when viewing the object properties from within hierarchy mode, the layer name it's still there. Can you guys help ? Otherwise I would have to select all objects and move them to a new layer and then manually distribute them to a new layer individually, which would take a huge amount of time with 1000+ objects.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
pixamoon's picture

`

hi,

Can I see the screenshot or could you send me few objects from this file?

you can try also this:

p = "parent name"
oArr = for o in objects where o.parent != undefined and o.parent.name == p collect o
select oArr

Best,
Pixanoon

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.