Connect two nodes
connect_nodesWire one node's output to another node's input in TouchDesigner, specifying connector indices. Returns source and target paths and which method made the connection.
Instructions
Wire one node's output connector into another node's input connector inside TouchDesigner, creating a single link between two existing nodes. Uses the bridge's batch endpoint when available and falls back to a Python connect otherwise. Use create_node_chain instead when you are creating several new nodes and want them auto-wired in sequence. Returns the source and target paths, the connector indices used, and which method made the connection.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_path | Yes | Path of the source node (output side). | |
| target_path | Yes | Path of the target node (input side). | |
| target_input | No | Which input connector of the target node to wire into (0-based; default 0). | |
| source_output | No | Which output connector of the source node to wire from (0-based; default 0). |