Delete ALL Materials in Blender | Illegal little trick

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

This for 2 dollars¿?¿?¿?:
import bpy

selected_objects = bpy.context.selected_objects

for obj in selected_objects:
obj.data.materials.clear()

bpy.ops.outliner.orphans_purge(do_local_ids=True, do_linked_ids=True, do_recursive=True)

nottdiego_
Автор

Bought it but I can´t seem to install it in blender 4.2.

RoxRon
Автор

or in py script paste
import bpy

for material in bpy.data.materials:
material.user_clear()

mythicalscrub
Автор

Does it work with eevee and cycles or just solid mode?🤔

wieshak
Автор

Created this in Chat GPT in 10 min. Same thing you did I am sure :D.

TMSKINS
Автор

you know that nobody will buy this addon?

rousseeni
Автор

blender is free why does addons to pay....

kanall
Автор

bro really trynna roast people in the thats not how you maintain a channel bud, you dont gotta be this agressive with your fellow subscribers trust me youll lose them if you dont answer with respect.

aliezzartstudio
Автор

$2?? Haha. All you need to execute in your script is
for material in bpy.data.materials:

This will permanently delete all materials in your blend file.

To clear materials from all selected objects just execute the following:
selected_objects = bpy.context.selected_objects
for obj in selected_objects:
obj.data.materials.clear()

Horrors_D