unreal.RigVMNode
¶
- class unreal.RigVMNode(outer=None, name='None')¶
Bases:
unreal.Object
The Node represents a single statement within a Graph. Nodes can represent values such as Variables / Parameters, they can represent Function Invocations or Control Flow logic statements (such as If conditions of For loops). Additionally Nodes are used to represent Comment statements. Nodes contain Pins to represent parameters for Function Invocations or Value access on Variables / Parameters.
C++ Source:
Module: RigVMDeveloper
File: RigVMNode.h
- find_pin(pin_path) → RigVMPin¶
Returns a Pin given it’s partial pin path below this node (for example: “Color.R”)
- get_all_pins_recursively()¶
Returns all of the Pins of this Node (including SubPins).
- get_block_index() → int32¶
Returns the index of the block this node belongs to
- Returns
- Return type
int32
- get_graph() → RigVMGraph¶
Returns the Graph of this Node
- Returns
- Return type
- get_injection_info() → RigVMInjectionInfo¶
Returns the injection info of this Node (or nullptr)
- Returns
- Return type
- get_instruction_index() → int32¶
Returns the current index of the instruction in the stack (or INDEX_NONE)
- Returns
- Return type
int32
- get_linked_source_nodes()¶
Returns a list of Nodes connected as sources to this Node as the target.
- get_linked_target_nodes()¶
Returns a list of Nodes connected as targets to this Node as the source.
- get_node_color() → LinearColor¶
Returns the color of this node - used for UI.
- Returns
- Return type
- get_node_index() → int32¶
Returns the current index of the Node within the Graph.
- Returns
- Return type
int32
- get_node_path() → str¶
Returns the a . separated string containing all of the names used to reach this Node within the Graph. (for now this is the same as the Node’s name)
- Returns
- Return type
- has_pin_of_direction(direction) → bool¶
Returns true if the node has any pins of the provided direction
- Parameters
direction (RigVMPinDirection) –
- Returns
- Return type
- is_defined_as_constant() → bool¶
Returns true if the node is defined as non-varying
- Returns
- Return type
- is_defined_as_varying() → bool¶
Returns true if the node is defined as non-varying
- Returns
- Return type
- is_injected() → bool¶
Returns true if this is an injected node. Injected nodes are managed by pins are are not visible to the user.
- Returns
- Return type
- is_linked_to(node) → bool¶
Returns true if this Node is linked to another given node through any of the Nodes’ Pins.
- is_mutable() → bool¶
Returns true if this Node has side effects or internal state.
- Returns
- Return type