Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Python for Blender - Rename all selected objects to a set base name followed by a 3 digit numeric suffix
import bpy
objects = bpy.context.selected_objects
base_name = "new_name"
for (i,o) in enumerate(objects): = "{}_{:03d}".format(base_name, i)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment