Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 4148

Set object name by layer name with counter

$
0
0

@corentin.ligot wrote:

Hello,

I’m looking for a script to name all objects of my scene by the name of their layer.
I found this topic. The Python script work, but i want a different name for every object, exactly like the SetObjectName command do, with the counter.
For example :
If there are 4 objects in the layer named “My_Layer”,
i want the script to name those objects : “My_Layer_1”, “My_Layer_2”, “My_Layer_3”, “My_Layer_4” and this for all layers in the scene.

If anyone can help me …
Thanks

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4148

Trending Articles