unreal.MovieGraphNode¶
- class unreal.MovieGraphNode(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
ObjectThis is a base class for all nodes that can exist in the UMovieGraphConfig network. In the editor, each node in the network will have an editor-only representation too which contains data about it’s visual position in the graph, comments, etc.
C++ Source:
Plugin: MovieRenderPipeline
Module: MovieRenderPipelineCore
File: MovieGraphNode.h
Editor Properties: (see get_editor_property/set_editor_property)
dynamic_properties(InstancedPropertyBag): [Read-Write] Properties which can be dynamically declared on the node (vs. native properties which are always present).script_tags(Array[str]): [Read-Write] Tags that can be used to identify this node within a pre/post render script. Tags can be unique in order to identify this specific node, or the same tag can be applied to multiple nodes in order to identify a grouping of nodes.
- can_be_added_by_user() bool¶
Determines if this node type can be added to the graph interactively by a user or via the API when constructing a graph.
- Returns:
true if the object can be added via the API, false otherwise
- Return type:
- get_branch_restriction() MovieGraphBranchRestriction¶
Determines which types of branches the node can be created in.
- Return type:
- get_exposed_properties() Array[MovieGraphPropertyInfo]¶
Gets the information about properties which are currently exposed as pins on the node.
- Return type:
- get_first_connected_input_pin() MovieGraphPin¶
Gets the first input pin on the node which has a connection, or nullptr if no pins are connected.
- Return type:
- get_first_connected_output_pin() MovieGraphPin¶
Gets the first output pin on the node which has a connection, or nullptr if no pins are connected.
- Return type:
- get_input_pin(pin_label, pin_requirement=MovieGraphPinQueryRequirement.BUILT_IN_OR_DYNAMIC) MovieGraphPin¶
Gets the input pin with the specified name, or nullptr if one could not be found. Most pins on a node are “built-in”, meaning they ship with the node. Dynamic pins (pins which are not built-in) can potentially have the same name as a built-in (eg, the option pins on the Select node). To disambiguate between built-in and dynamic pins, specify bIsBuiltInPin = false if trying to fetch a pin that is not built-in.
- Parameters:
pin_label (Name)
pin_requirement (MovieGraphPinQueryRequirement)
- Return type:
- get_input_pin_properties() Array[MovieGraphPinProperties]¶
Gets the properties for all input pins.
- Return type:
- get_input_pins() Array[MovieGraphPin]¶
Gets all input pins on the node. Note that the returned array is const, so input pins cannot be added/removed from the node via this array.
- Return type:
- get_keywords() Text¶
Gets the keywords (space-separated) that will be searched in the node creation context menu.
- Return type:
Gets the category that the node belongs under.
- Return type:
- get_node_pos_x() int32¶
Get Node Pos X
- Return type:
int32
- get_node_pos_y() int32¶
Get Node Pos Y
- Return type:
int32
- get_node_title(get_descriptive=False) Text¶
Gets the node’s title. Optionally gets a more descriptive, multi-line title for the node if bGetDescriptive is set to true.
- get_node_validation_errors(branch_name, evaluated_config) Array[Text] or None¶
Gets any validation errors that the node generated. Validation errors will halt the active render, if any. Called on the fully-evaluated node post-evaluation. Returns true if there were any errors (added to OutValidationErrors), else false.
- Parameters:
branch_name (Name)
evaluated_config (MovieGraphEvaluatedConfig)
- Returns:
out_validation_errors (Array[Text]):
- Return type:
- get_output_pin(pin_label) MovieGraphPin¶
Gets the output pin with the specified name, or nullptr if one could not be found.
- Parameters:
pin_label (Name)
- Return type:
- get_output_pin_properties() Array[MovieGraphPinProperties]¶
Gets the properties for all output pins.
- Return type:
- get_output_pins() Array[MovieGraphPin]¶
Gets all output pins on the node. Note that the returned array is const, so output pins cannot be added/removed from the node via this array.
- Return type:
- get_overrideable_property_info() Array[MovieGraphPropertyInfo]¶
Gets the information about properties which can be exposed as a pin on the node.
- Return type:
- promote_property_to_pin(property_name) None¶
Promotes the given PropertyName to a pinned property, if it is found in GetOverrideablePropertyInfo(). Throws a kismet (scripting) exception if it isn’t a overridable property.
- Parameters:
property_name (Name)
- property script_tags: None¶
[Read-Write] Tags that can be used to identify this node within a pre/post render script. Tags can be unique in order to identify this specific node, or the same tag can be applied to multiple nodes in order to identify a grouping of nodes.
- set_disabled(new_disable_state) None¶
Set whether this node is currently disabled.
- Parameters:
new_disable_state (bool)
- set_is_comment_bubble_pinned(is_pinned) None¶
Set Is Comment Bubble Pinned
- Parameters:
is_pinned (uint8)
- set_is_comment_bubble_visible(is_visible) None¶
Set Is Comment Bubble Visible
- Parameters:
is_visible (uint8)