Last active
December 9, 2023 05:18
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# [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