Skip to content

Instantly share code, notes, and snippets.

@CGLion
Last active October 4, 2020 13:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CGLion/f66ec81cabe425d124913ae3686fc371 to your computer and use it in GitHub Desktop.
Save CGLion/f66ec81cabe425d124913ae3686fc371 to your computer and use it in GitHub Desktop.
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):
o.name = "{}_{:03d}".format(base_name, i)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment