connect_anim_graph_ports
Connect an output port to an input port in an animation blend tree graph. Validates compatibility, rejects cycles, duplicates, and occupied inputs; refuses state machine targets.
Instructions
Connect an output port to an input port (blend trees).
Returns the target node's input port object. Refused: a target inside a
state machine (use add_anim_graph_transition), incompatible port
types, an occupied input, a duplicate, and a cycle. An unknown port name
is refused with the node's ports listed as "name" (index).
Args: anim_graph_id: Graph id (number or digit string). source_node_id: Node whose output to connect. source_port: Output port index or name. target_node_id: Node whose input to connect. target_port: Input port index or name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_port | Yes | ||
| target_port | Yes | ||
| anim_graph_id | Yes | ||
| source_node_id | Yes | ||
| target_node_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |