Automatically change the properties of multiple materials I'm importing a FBX sequence from Anima Pro with several animated characters but all materials are interpreted as metallic. Every time I import a new fbx I have to manually change hundreds of materials and setting the metallic property to 0.
Is there a way to automatically change the properties of multiple materials on multiple objects?
Can this be done in a script?
Try this. It affects all materials in the file.
import bpy
for mat in bpy.data.materials:
    if not mat.use_nodes:
        mat.metallic = 0
        continue
    for n in mat.node_tree.nodes:
        if n.type == 'BSDF_PRINCIPLED':
            n.inputs[&quot;Metallic&quot;].default_value = 0