add_anim_graph_transition
Create a state-machine transition in an O3DE animation graph, optionally with conditions, to control when a source state moves to a target state.
Instructions
Add a state-machine transition, optionally with conditions.
Returns the transition object as get_anim_graph emits it. Source and
target must share a state-machine parent; an exit node cannot be a source.
All conditions are added as one Animation Editor undo step.
Args:
anim_graph_id: Graph id (number or digit string).
target_node_id: The state to transition to.
source_node_id: The state to transition from. Required unless
wildcard is true.
wildcard: True for a wildcard transition (from any state). Then omit
source_node_id.
blend_time: Blend time in seconds, 0 or more.
priority: Higher wins when several transitions are ready (0 to 2**32-1).
disabled: Create the transition disabled.
sync_mode: 0 disabled, 1 track based, 2 clip based.
interpolation: 0 linear, 1 ease curve.
conditions: List of {"condition_type": ..., "attributes": {...}}.
Types: ParameterCondition, TimeCondition,
PlayTimeCondition, MotionCondition, StateCondition,
TagCondition, Vector2Condition (or the RTTI name). For
example {"condition_type": "ParameterCondition", "attributes": {"parameterName": "Speed", "function": "GREATER", "testValue": 0.1}}. Enum attributes take the integer or the name; an
unsupported attribute is refused with the supported list.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| disabled | No | ||
| priority | No | ||
| wildcard | No | ||
| sync_mode | No | ||
| blend_time | No | ||
| conditions | No | ||
| anim_graph_id | Yes | ||
| interpolation | No | ||
| source_node_id | No | ||
| target_node_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |