Hey:)
Thats my question :
If I understand correct:
The user has selected several objects and want to give them a name|
myname01, myname02 … myname14 (if 14 objects were seltected with whatever name?)
And that by using a script with name = “myname” the rest automatically?
import bpy
def renameSeletedToNumbered(name):
counter = 0
ao = bpy.data.objects
for el in ao:
if el.select:
print("name now is ",el.name)
counter +=1
el.name = name + str(counter)
print(“new name is”, el.name)
renameSeletedToNumbered(‘aaa’)
‘’’
name now is Cube
new name is aaa1
name now is Curve
new name is aaa2
name now is Monkey
new name is aaa3
‘’’
Well thats exactly what im looking for, but is doesnt work.
Can someone explain to me how this works, so what does each line do? And why dosnt it work?
Im using Blender 2.64.
Thanks!