Skip to content

Instantly share code, notes, and snippets.

@gordielachance
Created September 25, 2025 21:30
Show Gist options
  • Select an option

  • Save gordielachance/dd4efcacf41ff33fa8263c426873c5be to your computer and use it in GitHub Desktop.

Select an option

Save gordielachance/dd4efcacf41ff33fa8263c426873c5be to your computer and use it in GitHub Desktop.
Blender script : delete all materials from selected object
import bpy
obj = bpy.context.active_object
obj.data.materials.clear()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment