Skip to content

Instantly share code, notes, and snippets.

@Pikachuxxxx
Last active December 9, 2023 05:18
Show Gist options
  • Save Pikachuxxxx/03274e7a8a616f76eab3cbbe119c00a0 to your computer and use it in GitHub Desktop.
Save Pikachuxxxx/03274e7a8a616f76eab3cbbe119c00a0 to your computer and use it in GitHub Desktop.
Scene clean up code to copy scene object name to mesh name in Blender
# [Source] : https://blender.stackexchange.com/questions/46795/is-there-a-quick-way-to-copy-the-object-name-to-the-mesh-data-name
import bpy
objects = bpy.data.objects
for obj in objects:
if obj.data and obj.data.users == 1:
obj.data.name = obj.name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment