Skip to content

Instantly share code, notes, and snippets.

@Begalov
Created February 27, 2022 09:12
Show Gist options
  • Save Begalov/67b1e1f93b21cd2c4da1a1ab686ecf50 to your computer and use it in GitHub Desktop.
Save Begalov/67b1e1f93b21cd2c4da1a1ab686ecf50 to your computer and use it in GitHub Desktop.
import bpy
for m in (m for m in bpy.data.materials if m.node_tree != None):
ps = m.node_tree.nodes['Material Output'].inputs['Surface'].links[0].from_node
ps.inputs[7].default_value = 0.
ps.inputs[9].default_value = 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment