unreal.AvaAlignBetweenModifier

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

Bases: AvaBaseModifier

Moves the modifying actor to the averaged location between an array of specified actors.

C++ Source:

  • Plugin: Avalanche

  • Module: AvalancheModifiers

  • File: AvaAlignBetweenModifier.h

Editor Properties: (see get_editor_property/set_editor_property)

  • modifier_enabled (bool): [Read-Write] Is the modifier enabled or disabled

  • reference_actors (Set[AvaAlignBetweenWeightedActor]): [Read-Write] Editable set of reference actors and weights used to calculate the average location for this actor

add_reference_actor(reference_actor) None

Adds an actor to the reference list.

Parameters:

reference_actor (AvaAlignBetweenWeightedActor) –

find_reference_actor(actor) AvaAlignBetweenWeightedActor or None

Finds an actor in the reference list.

Parameters:

actor (Actor) –

Returns:

out_reference_actor (AvaAlignBetweenWeightedActor):

Return type:

AvaAlignBetweenWeightedActor or None

get_actors(enabled_only=False) Set[Actor]

Gets all actors from their reference actor structs.

Parameters:

enabled_only (bool) –

Return type:

Set[Actor]

get_reference_actors() Set[AvaAlignBetweenWeightedActor]

Gets all reference actors and their weights.

Return type:

Set[AvaAlignBetweenWeightedActor]

property reference_actors: None

[Read-Write] Editable set of reference actors and weights used to calculate the average location for this actor

Type:

(Set[AvaAlignBetweenWeightedActor])

remove_reference_actor(actor) bool

Removes an actor from the reference list.

Parameters:

actor (Actor) –

Return type:

bool

set_reference_actors(new_reference_actors) None

Sets all reference actors and their weights.

Parameters:

new_reference_actors (Set[AvaAlignBetweenWeightedActor]) –