Node(bpy_struct)ΒΆ
base class β bpy_struct
subclasses β
NodeCustomGroup, NodeInternal
- class bpy.types.Node(bpy_struct)ΒΆ
Node in a node tree
- bl_descriptionΒΆ
(default ββ, never None)
- Type:
str
- bl_height_defaultΒΆ
(in [0, inf], default 0.0)
- Type:
float
- bl_height_maxΒΆ
(in [0, inf], default 0.0)
- Type:
float
- bl_height_minΒΆ
(in [0, inf], default 0.0)
- Type:
float
- bl_iconΒΆ
The node icon (default
'NODE')- Type:
Literal[Icon Items]
- bl_idnameΒΆ
(default ββ, never None)
- Type:
str
- bl_labelΒΆ
The node label (default ββ, never None)
- Type:
str
- bl_static_typeΒΆ
Legacy unique node type identifier, redundant with bl_idname property (default ββ, readonly, never None)
- Type:
str
- bl_width_defaultΒΆ
(in [0, inf], default 0.0)
- Type:
float
- bl_width_maxΒΆ
(in [0, inf], default 0.0)
- Type:
float
- bl_width_minΒΆ
(in [0, inf], default 0.0)
- Type:
float
- colorΒΆ
Custom color of the node body (array of 3 items, in [0, 1], default (0.0, 0.0, 0.0))
- Type:
- color_tagΒΆ
Node header color tag (default
'NONE', readonly)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:
Literal[βNONEβ, βATTRIBUTEβ, βCOLORβ, βCONVERTERβ, βDISTORTβ, βFILTERβ, βGEOMETRYβ, βINPUTβ, βMATTEβ, βOUTPUTβ, βSCRIPTβ, βSHADERβ, βTEXTUREβ, βVECTORβ, βPATTERNβ, βINTERFACEβ, βGROUPβ]
- dimensionsΒΆ
Absolute bounding box dimensions of the node (array of 2 items, in [-inf, inf], default (0.0, 0.0), readonly)
- Type:
- heightΒΆ
Height of the node (in [-inf, inf], default 0.0)
- Type:
float
- hideΒΆ
(default False)
- Type:
bool
- inputsΒΆ
(default None, readonly)
- Type:
- internal_linksΒΆ
Internal input-to-output connections for muting (default None, readonly)
- Type:
- labelΒΆ
Optional custom node label (default ββ, never None)
- Type:
str
- locationΒΆ
Location of the node within its parent frame (array of 2 items, in [-1e+06, 1e+06], default (0.0, 0.0))
- Type:
- location_absoluteΒΆ
Location of the node in the entire canvas (array of 2 items, in [-1e+06, 1e+06], default (0.0, 0.0))
- Type:
- muteΒΆ
(default False)
- Type:
bool
- nameΒΆ
Unique node identifier (default ββ, never None)
- Type:
str
- outputsΒΆ
(default None, readonly)
- Type:
- selectΒΆ
Node selection state (default False)
- Type:
bool
- show_optionsΒΆ
(default False)
- Type:
bool
- show_previewΒΆ
(default False)
- Type:
bool
- show_textureΒΆ
Display node in viewport textured shading mode (default False)
- Type:
bool
- typeΒΆ
Legacy unique node type identifier, redundant with bl_idname property (default ββ, readonly, never None)
- Type:
str
- use_custom_colorΒΆ
Use custom color for the node (default False)
- Type:
bool
- warning_propagationΒΆ
The kinds of messages that should be propagated from this node to the parent group node (default
'ALL')ALLAll Messages β Propagate every info, error, and warning message upstream.ERRORS_AND_WARNINGSErrors and Warnings β Propagate only error and warning messages upstream.ERRORSErrors β Propagate only error messages upstream.NONENone β Do not propagate any messages upstream.
- Type:
Literal[βALLβ, βERRORS_AND_WARNINGSβ, βERRORSβ, βNONEβ]
- widthΒΆ
Width of the node (in [-inf, inf], default 0.0)
- Type:
float
- bl_system_properties_get(*, do_create=False)ΒΆ
DEBUG ONLY. Internal access to runtime-defined RNA data storage, intended solely for testing and debugging purposes. Do not access it in regular scripting work, and in particular, do not assume that it contains writable data
- Parameters:
do_create (bool) β Ensure that system properties are created if they do not exist yet (optional)
- Returns:
The system properties root container, or None if there are no system properties stored in this data yet, and its creation was not requested
- Return type:
- socket_value_update(context)ΒΆ
Update after property changes
- Parameters:
context (
Context) β (never None)
- classmethod is_registered_node_type()ΒΆ
True if a registered node type
- Returns:
Result
- Return type:
bool
- 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:
bool
- 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:
bool
- 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) β Link, Node link that will be inserted (never None)
- init(context)ΒΆ
Initialize a new instance of this node
- Parameters:
context (
Context) β (never None)
- copy(node)ΒΆ
Initialize a new instance of this node from an existing node
- Parameters:
node (
Node) β Node, Existing node to copy (never None)
- free()ΒΆ
Clean up node on removal
- draw_buttons(context, layout)ΒΆ
Draw node buttons
- draw_buttons_ext(context, layout)ΒΆ
Draw node buttons in the sidebar
- draw_label()ΒΆ
Returns a dynamic label string
- Returns:
Label, (never None)
- Return type:
str
- 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:
str
- debug_zone_lazy_function_graph()ΒΆ
Get the internal lazy-function graph for this zone
- Returns:
Dot Graph, Graph in dot format
- Return type:
str
- classmethod bl_rna_get_subclass(id, default=None, /)ΒΆ
- Parameters:
id (str) β The RNA type identifier.
default (
bpy.types.Struct| None) β The value to return when not found.
- Returns:
The RNA type or default when not found.
- Return type:
Inherited PropertiesΒΆ
Inherited FunctionsΒΆ
ReferencesΒΆ
|