Last active
October 4, 2020 13:49
-
-
Save CGLion/ae83bef30e44ad175551f29943fdcd10 to your computer and use it in GitHub Desktop.
Python for Blender - Prefix all selected objects name with their Blender data type like renaming “SomeModel” to “MESH_SomeModel” or for example
This file contains hidden or 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
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