I have an object that has 100+ materials, and the roughness in each material is set to 1, is there an easy way to set it to 0.5 with a script or smth?
you can do it like this:
import bpy for eachSlot in bpy.data.objects["Cube"].material_slots: eachSlot.material.node_tree.nodes["Principled BSDF"].inputs.default_value = 0.5
- all materials look like this:
you exchange "Cube" to the name of your object
Each slot must have an material which looks like 1)