unreal.MovieGraphModifierNode

class unreal.MovieGraphModifierNode(outer: Object | None = None, name: Name | str = 'None')

Bases: MovieGraphSettingNode

A collection node specifies an interface for doing dynamic scene queries for actors in the world. Collections work in tandem with UMovieGraphModifiers to select which actors the modifiers should be run on.

C++ Source:

  • Plugin: MovieRenderPipeline

  • Module: MovieRenderPipelineCore

  • File: MovieGraphModifierNode.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).

  • modifier_name (str): [Read-Write] The name of this modifier.

add_collection(collection_name) None

Add a collection identified by the given name which will be affected by the modifiers on this node.

Parameters:

collection_name (Name) –

add_modifier(modifier_type) MovieGraphCollectionModifier

Adds a new modifier of the specified type. Returns a pointer to the new modifier, or nullptr if a modifier of the specified type already exists on this node (only one modifier of each type can be added to the node).

Parameters:

modifier_type (type(Class)) –

Return type:

MovieGraphCollectionModifier

get_collections() Array[Name]

Gets all collections that will be affected by the modifiers on this node.

Return type:

Array[Name]

get_modifier(modifier_type) MovieGraphCollectionModifier

Gets the modifier of the specified type, or nullptr if one does not exist on this node.

Parameters:

modifier_type (type(Class)) –

Return type:

MovieGraphCollectionModifier

get_modifiers() Array[MovieGraphCollectionModifier]

Gets all modifiers currently added to the node.

Return type:

Array[MovieGraphCollectionModifier]

property modifier_name: str

[Read-Write] The name of this modifier.

Type:

(str)

remove_collection(collection_name) bool

Remove a collection identified by the given name. Returns true if the collection was found and removed successfully, else false.

Parameters:

collection_name (Name) –

Return type:

bool

remove_modifier(modifier_type) bool

Removes the modifier of the specified type. Returns true on success, or false if a modifier of the specified type does not exist on the node.

Parameters:

modifier_type (type(Class)) –

Return type:

bool