connect_nodes
Connect a node's output to another node's input in a material node graph, replacing existing links as needed.
Instructions
Link one node's output to another node's input.
Socket names come from get_material_nodes; a numeric string selects by index.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| replace | No | Drop any existing link into that input | |
| to_node | Yes | ||
| material | Yes | ||
| from_node | Yes | ||
| to_socket | No | Input socket name, e.g. 'Base Color' | 0 |
| from_socket | No | Output socket name, e.g. 'Color' | 0 |