We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
new_mat = bpy.data.materials.new('Chrome') new_mat.use_nodes = True tree = mat.node_tree [...] o = bpy.context.object o.active_material = new_mat
Control color as:
bpy.data.materials["Metal.002"].node_tree.nodes["Principled BSDF"].inputs[0].default_value = (0.749198, 0.297648, 0.249657, 1)
To duplicate materials: https://blender.stackexchange.com/questions/82768/copy-material-with-python
The text was updated successfully, but these errors were encountered:
Mapping of random colors to materials:
import colorsys colorsys.hsv_to_rgb(random.random(), .3, .7)
CR.color_ramp.color_mode = "HSV" CR.color_ramp.elements[0].position = 0.9 CR.color_ramp.elements[0].color = color_hsv CR.color_ramp.elements[1].position = 1 CR.color_ramp.elements[1].color = (0,0,0,1)
Sorry, something went wrong.
Ended up adding a "blender.MeshChromeMaterial" with configurable primary color.
taiya
Successfully merging a pull request may close this issue.
Control color as:
To duplicate materials:
https://blender.stackexchange.com/questions/82768/copy-material-with-python
The text was updated successfully, but these errors were encountered: