What's the best way of replacing a material in your scene with another one?
At first I thought I could simply bpy.data.materials['old_mat_name'] = new_mat
, but that reference is read only so it throws an error.
Do I really have to comb through every object in my scene for material slots named old_mat_name
and replace them with the new one?
Is there a better way of getting one material to match another exactly?