Skip to content

Instantly share code, notes, and snippets.

@Naxela
Created September 27, 2021 16:21
Show Gist options
  • Save Naxela/77ffc4e381d7eafeaf7202f514c03e64 to your computer and use it in GitHub Desktop.
Save Naxela/77ffc4e381d7eafeaf7202f514c03e64 to your computer and use it in GitHub Desktop.
Remove temporary materials
import bpy
for mat in bpy.data.materials:
if "temp" in mat.name:
print("The material will be removed: " + mat.name)
bpy.data.materials.remove(mat)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment