ShaderNodes(bpy_struct)

base class — bpy_struct

class bpy.types.ShaderNodes(bpy_struct)

Collection of Shader Nodes

new(type, group=None)

Add a node to this node tree.

Parameters:
  • type (enum in [‘OUTPUT’, ‘MATERIAL’, ‘RGB’, ‘VALUE’, ‘MIX_RGB’, ‘VALTORGB’, ‘RGBTOBW’, ‘TEXTURE’, ‘NORMAL’, ‘GEOMETRY’, ‘MAPPING’, ‘CURVE_VEC’, ‘CURVE_RGB’, ‘CAMERA’, ‘MATH’, ‘VECT_MATH’, ‘SQUEEZE’, ‘MATERIAL_EXT’, ‘INVERT’, ‘SEPRGB’, ‘COMBRGB’, ‘HUE_SAT’, ‘SCRIPT’, ‘GROUP’]) – Type, Type of node to add
  • group (NodeTree, (optional)) – The group tree
Returns:

New node.

Return type:

Node

remove(node)

remove a node from this node tree.

Parameters:node (Node) – The node to remove.

Inherited Properties

Inherited Functions

References

Previous topic

ShaderNodeVectorMath(ShaderNode)

Next topic

ShapeActionActuator(Actuator)