acoolrocket

Selected objects have the same specular and roughness value in the Principled BSDF

Oct 9th, 2021 (edited)
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. import bpy
  2.  
  3. for obj in bpy.context.selected_objects:
  4. m = obj.data.materials[0]
  5. m.node_tree.nodes["Principled BSDF"].inputs[1].default_value = 0.5
  6. m.node_tree.nodes["Principled BSDF"].inputs[2].default_value = 0.5
Advertisement
Add Comment
Please, Sign In to add comment