Skip to content

Instantly share code, notes, and snippets.

@yomotsu
Forked from edom18/rename.py
Last active March 24, 2022 14:14
Show Gist options
  • Save yomotsu/8505404 to your computer and use it in GitHub Desktop.
Save yomotsu/8505404 to your computer and use it in GitHub Desktop.
import bpy
for obj in bpy.data.objects:
obj.name = 'obj'
for mesh in bpy.data.meshes:
mesh.name = 'mesh'
for armature in bpy.data.armatures:
armature.name = 'arm'
for bone in armature.bones:
bone.name = 'bone'
for material in bpy.data.materials:
material.name = 'mat'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment