Skip to content
Snippets Groups Projects
Commit c95e86bc authored by Eugenio Pignataro's avatar Eugenio Pignataro
Browse files

Rename now support order and padding

parent b674c491
No related branches found
No related tags found
No related merge requests found
...@@ -63,9 +63,11 @@ class renameObjectsOt (Operator): ...@@ -63,9 +63,11 @@ class renameObjectsOt (Operator):
bl_options = {"REGISTER", "UNDO"} bl_options = {"REGISTER", "UNDO"}
def execute(self, context): def execute(self, context):
listaObj = bpy.context.selected_objects[:] i = 0
listaObj = bpy.selection_osc
for objeto in listaObj: for objeto in listaObj:
objeto.name = bpy.context.scene.RenameObjectOt objeto.name = "%s_%04d" % (bpy.context.scene.RenameObjectOt, i)
i += 1
return {'FINISHED'} return {'FINISHED'}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment