Node(bpy_struct)ΒΆ
base class β bpy_struct
subclasses β
NodeCustomGroup
, NodeInternal
- class bpy.types.Node(bpy_struct)ΒΆ
Node in a node tree
- bl_descriptionΒΆ
- Type:
string, default ββ, (never None)
- bl_height_defaultΒΆ
- Type:
float in [0, inf], default 0.0
- bl_height_maxΒΆ
- Type:
float in [0, inf], default 0.0
- bl_height_minΒΆ
- Type:
float in [0, inf], default 0.0
- bl_iconΒΆ
The node icon
- Type:
enum in Icon Items, default βNODEβ
- bl_idnameΒΆ
- Type:
string, default ββ, (never None)
- bl_labelΒΆ
The node label
- Type:
string, default ββ, (never None)
- bl_static_typeΒΆ
Legacy unique node type identifier, redundant with bl_idname property
- Type:
string, default ββ, (readonly, never None)
- bl_width_defaultΒΆ
- Type:
float in [0, inf], default 0.0
- bl_width_maxΒΆ
- Type:
float in [0, inf], default 0.0
- bl_width_minΒΆ
- Type:
float in [0, inf], default 0.0
- colorΒΆ
Custom color of the node body
- Type:
mathutils.Color
of 3 items in [0, 1], default (0.0, 0.0, 0.0)
- color_tagΒΆ
Node header color tag
NONE
None β Default color tag for new nodes and node groups.ATTRIBUTE
Attribute.COLOR
Color.CONVERTER
Converter.DISTORT
Distort.FILTER
Filter.GEOMETRY
Geometry.INPUT
Input.MATTE
Matte.OUTPUT
Output.SCRIPT
Script.SHADER
Shader.TEXTURE
Texture.VECTOR
Vector.PATTERN
Pattern.INTERFACE
Interface.GROUP
Group.
- Type:
enum in [βNONEβ, βATTRIBUTEβ, βCOLORβ, βCONVERTERβ, βDISTORTβ, βFILTERβ, βGEOMETRYβ, βINPUTβ, βMATTEβ, βOUTPUTβ, βSCRIPTβ, βSHADERβ, βTEXTUREβ, βVECTORβ, βPATTERNβ, βINTERFACEβ, βGROUPβ], default βNONEβ, (readonly)
- dimensionsΒΆ
Absolute bounding box dimensions of the node
- Type:
mathutils.Vector
of 2 items in [-inf, inf], default (0.0, 0.0), (readonly)
- heightΒΆ
Height of the node
- Type:
float in [-inf, inf], default 0.0
- hideΒΆ
- Type:
boolean, default False
- inputsΒΆ
- Type:
NodeInputs
bpy_prop_collection
ofNodeSocket
, (readonly)
- internal_linksΒΆ
Internal input-to-output connections for muting
- Type:
bpy_prop_collection
ofNodeLink
, (readonly)
- labelΒΆ
Optional custom node label
- Type:
string, default ββ, (never None)
- locationΒΆ
Location of the node within its parent frame
- Type:
mathutils.Vector
of 2 items in [-1e+06, 1e+06], default (0.0, 0.0)
- location_absoluteΒΆ
Location of the node in the entire canvas
- Type:
mathutils.Vector
of 2 items in [-1e+06, 1e+06], default (0.0, 0.0)
- muteΒΆ
- Type:
boolean, default False
- nameΒΆ
Unique node identifier
- Type:
string, default ββ, (never None)
- outputsΒΆ
- Type:
NodeOutputs
bpy_prop_collection
ofNodeSocket
, (readonly)
- selectΒΆ
Node selection state
- Type:
boolean, default False
- show_optionsΒΆ
- Type:
boolean, default False
- show_previewΒΆ
- Type:
boolean, default False
- show_textureΒΆ
Display node in viewport textured shading mode
- Type:
boolean, default False
- typeΒΆ
Legacy unique node type identifier, redundant with bl_idname property
- Type:
string, default ββ, (readonly, never None)
- use_custom_colorΒΆ
Use custom color for the node
- Type:
boolean, default False
- warning_propagationΒΆ
The kinds of messages that should be propagated from this node to the parent group node
- Type:
enum in [βALLβ, βNONEβ, βERRORSβ, βERRORS_AND_WARNINGSβ], default βALLβ
- widthΒΆ
Width of the node
- Type:
float in [-inf, inf], default 0.0
- socket_value_update(context)ΒΆ
Update after property changes
- classmethod is_registered_node_type()ΒΆ
True if a registered node type
- Returns:
Result
- Return type:
boolean
- classmethod poll(node_tree)ΒΆ
If non-null output is returned, the node type can be added to the tree
- Parameters:
node_tree (
NodeTree
) β Node Tree- Return type:
boolean
- poll_instance(node_tree)ΒΆ
If non-null output is returned, the node can be added to the tree
- Parameters:
node_tree (
NodeTree
) β Node Tree- Return type:
boolean
- update()ΒΆ
Update on node graph topology changes (adding or removing nodes and links)
- insert_link(link)ΒΆ
Handle creation of a link to or from the node
- Parameters:
link (
NodeLink
, (never None)) β Link, Node link that will be inserted
- init(context)ΒΆ
Initialize a new instance of this node
- copy(node)ΒΆ
Initialize a new instance of this node from an existing node
- Parameters:
node (
Node
, (never None)) β Node, Existing node to copy
- free()ΒΆ
Clean up node on removal
- draw_buttons(context, layout)ΒΆ
Draw node buttons
- Parameters:
layout (
UILayout
, (never None)) β Layout, Layout in the UI
- draw_buttons_ext(context, layout)ΒΆ
Draw node buttons in the sidebar
- Parameters:
layout (
UILayout
, (never None)) β Layout, Layout in the UI
- draw_label()ΒΆ
Returns a dynamic label string
- Returns:
Label
- Return type:
string, (never None)
- debug_zone_body_lazy_function_graph()ΒΆ
Get the internal lazy-function graph for the body of this zone
- Returns:
Dot Graph, Graph in dot format
- Return type:
string
- debug_zone_lazy_function_graph()ΒΆ
Get the internal lazy-function graph for this zone
- Returns:
Dot Graph, Graph in dot format
- Return type:
string
- classmethod bl_rna_get_subclass(id, default=None)ΒΆ
- Parameters:
id (str) β The RNA type identifier.
- Returns:
The RNA type or default when not found.
- Return type:
bpy.types.Struct
subclass