-1

Would anyone be so kind as to write a script that sets everything in the scene to use 0.0 specular for 2.9? I tried the script here: Removing specular intensity from all materials with internal but then realized after that it's not going to work in 2.9.

Thank you

ShadowX11
  • 71
  • 7

1 Answers1

4

Shamesly copied from:

Automatically change the properties of multiple materials

import bpy
for mat in bpy.data.materials:
    if not mat.use_nodes:
        mat.specular_intensity = 0
        continue
    for n in mat.node_tree.nodes:
        if n.type == 'BSDF_PRINCIPLED':
            n.inputs["Specular"].default_value = 0

Please refer to the Blender api https://docs.blender.org/api/current/bpy.types.Material.html#bpy.types.Material.specular_intensity

susu
  • 14,002
  • 3
  • 25
  • 48