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.Colorof 3 items in [0, 1], default (0.0, 0.0, 0.0)
- color_tagÂķ
Node header color tag
NONENone â Default color tag for new nodes and node groups.ATTRIBUTEAttribute.COLORColor.CONVERTERConverter.DISTORTDistort.FILTERFilter.GEOMETRYGeometry.INPUTInput.MATTEMatte.OUTPUTOutput.SCRIPTScript.SHADERShader.TEXTURETexture.VECTORVector.PATTERNPattern.INTERFACEInterface.GROUPGroup.
- 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.Vectorof 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:
NodeInputsbpy_prop_collectionofNodeSocket, (readonly)
- internal_linksÂķ
Internal input-to-output connections for muting
- Type:
bpy_prop_collectionofNodeLink, (readonly)
- labelÂķ
Optional custom node label
- Type:
string, default ââ, (never None)
- locationÂķ
Location of the node within its parent frame
- Type:
mathutils.Vectorof 2 items in [-1e+06, 1e+06], default (0.0, 0.0)
- location_absoluteÂķ
Location of the node in the entire canvas
- Type:
mathutils.Vectorof 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:
NodeOutputsbpy_prop_collectionofNodeSocket, (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.Structsubclass