# Batch rename objects with number sequence?

Is there a way to batch rename objects in a sequence similar to: object1, object2, object3...? Where 'object' would be any custom name?

I found the batch rename datablocks script and it was really helpful for renaming a group of objects but gives a sequence like: object.001, object.002, object.003

Is there any way to use this script to give the first kind of sequence?

• Does this help? – p2or Jan 22 '17 at 20:14
• Thanks poor! Looks like either that or the script below works well. Your link gives the option of connecting it with a hotkey which can be really nice too. – Animatoring Jan 23 '17 at 0:12

import bpy

for i, obj in enumerate(bpy.context.selected_objects, 1):
bpy.context.scene.objects.active = obj
obj.name = "object" + str(i)


Just replace "object" with "your name" and run this in the text editor (make sure you have all objects selected that you want renamed).

I'm sure there are dozens of add-ons floating around that do this since they are quite easy to code and thus a good way to learn python, but here's mine:

https://github.com/gregzaal/batch-renamer

Blender users can now do batch rename with (Menu: Edit ‣ Batch Rename and Hotkey: Ctrl+F2) without any add-ons. (blender +2.80) Read this blender manual section for more info: https://docs.blender.org/manual/en/dev/files/blend/rename.html#batch-rename