I'm currently trying to create a tool, to rename objects in blender, to automatically have lowercase names. I keep however getting the error: TypeError: 'list' object is not callable
My current code is below, can anyone tell me how I can fix this error?
objs = bpy.context.scene.objects
#o = old_name l = lowercase
o = {n.name for n in objs}
print(o)
l = [elem.lower() for elem in o]
count = len(objs)
i = 0
print(count)
while i < count:
objs[i].name = l()
i+=1
edit: I want to do more with the name than just make it lowercase, but I keep getting stuck on renaming the objects in the right order so that's what I'm trying to fix here
l
is a list.l()
is trying to call the list as if it were a function, which it is not. What were hopingl()
would do? $\endgroup$l
to contain the new names of the objects, and assign them as the object name usingobjs[i].name
$\endgroup$