Skip to content

Instantly share code, notes, and snippets.

@zeffii
Created October 30, 2015 09:43
Show Gist options
  • Save zeffii/5e09499192154489bf3e to your computer and use it in GitHub Desktop.
Save zeffii/5e09499192154489bf3e to your computer and use it in GitHub Desktop.
nodes = bpy.data.materials[0].node_tree.nodes
gnodes = nodes["Group"].node_tree.nodes
cRamp = nodes["ColorRamp"]
elements = cRamp.color_ramp.elements
elements[1].color = section[1]
elements[1].position = input
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment