Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Python for Blender - Prefix all selected objects name with their Blender data type like renaming “SomeModel” to “MESH_SomeModel” or for example
import bpy
objects = bpy.context.selected_objects
for i, o in enumerate(objects):
o.name = "{}_{}".format(o.type, o.name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.