How To Add The Same Shader/Material To Multiple Objects?
import bpy


# Input material's name to append
matname = &quot;SECTION&quot; 

if matname in bpy.data.materials :
    mat = bpy.data.materials[matname]
    objs= bpy.context.selected_objects
    for obj in objs :
        if obj.type == &quot;MESH&quot; :
            if matname not in obj.data.materials :
                obj.data.materials.append(mat)
else :
    print(&quot;Material '&quot; + matname+ &quot;' does not exist&quot;)