connect_nodes
Wire two Houdini nodes together by specifying source and destination paths, plus optional output/input indices, input name, or subnet indirect input.
Instructions
Connect two nodes together.
To feed a node INSIDE a subnet from one of the subnet's own input connectors (a SubnetIndirectInput — not a node, it has no path), pass the subnet as source_path and the connector index as indirect_input.
Args: ctx: MCP context. source_path: Upstream node path; with indirect_input, the subnet whose input connector is the source. dest_path: Downstream node path. output_index: Source output index. input_index: Destination input index. input_name: Destination connector name or label (e.g. "base_color" on a VOP shader); wins over input_index. indirect_input: Index of the subnet input connector at source_path to wire from (dest_path must live inside that subnet).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dest_path | Yes | ||
| input_name | No | ||
| input_index | No | ||
| source_path | Yes | ||
| output_index | No | ||
| indirect_input | No |