Rename now support order and padding

This commit is contained in:
Eugenio Pignataro 2016-12-27 12:02:55 -03:00
parent b674c49153
commit c95e86bcef
1 changed files with 4 additions and 2 deletions

View File

@ -63,9 +63,11 @@ class renameObjectsOt (Operator):
bl_options = {"REGISTER", "UNDO"}
def execute(self, context):
listaObj = bpy.context.selected_objects[:]
i = 0
listaObj = bpy.selection_osc
for objeto in listaObj:
objeto.name = bpy.context.scene.RenameObjectOt
objeto.name = "%s_%04d" % (bpy.context.scene.RenameObjectOt, i)
i += 1
return {'FINISHED'}