Help unbind all materials from selected object i hope someone can help me, is it possible in python to give object e.g. &quot;Sphere&quot; its own materials? (single-user option)
I hope someone can help me.
(Blender 2.92.0)
Try this, it affects all selected objects.
import bpy
for ob in bpy.context.selected_objects:
    for ms in ob.material_slots:
        if ms.material and ms.material.users &gt; 1:
            ms.material = ms.material.copy()

Note that it may not do what you expect if an object has two slots with the same material.