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’, ‘OUTPUT_MATERIAL’, ‘OUTPUT_WORLD’, ‘OUTPUT_LAMP’, ‘FRESNEL’, ‘MIX_SHADER’, ‘ATTRIBUTE’, ‘BACKGROUND’, ‘BSDF_DIFFUSE’, ‘BSDF_GLOSSY’, ‘BSDF_GLASS’, ‘BSDF_TRANSLUCENT’, ‘BSDF_TRANSPARENT’, ‘BSDF_VELVET’, ‘EMISSION’, ‘NEW_GEOMETRY’, ‘LIGHT_PATH’, ‘TEX_IMAGE’, ‘TEX_SKY’, ‘TEX_GRADIENT’, ‘TEX_VORONOI’, ‘TEX_MAGIC’, ‘TEX_WAVE’, ‘TEX_NOISE’, ‘TEX_MUSGRAVE’, ‘TEX_COORD’, ‘ADD_SHADER’, ‘TEX_ENVIRONMENT’, ‘HOLDOUT’, ‘LAYER_WEIGHT’, ‘VOLUME_TRANSPARENT’, ‘VOLUME_ISOTROPIC’, ‘GAMMA’, ‘TEX_CHECKER’, ‘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
clear()

Remove all nodes from this node tree

Inherited Properties

Inherited Functions

References

Previous topic

ShaderNodeVolumeTransparent(ShaderNode)

Next topic

ShapeActionActuator(Actuator)