ap_node_connect
Connect one node's output socket to another node's input socket to establish material node graph links. Specify source and destination node IDs plus socket indexes to define the connection.
Instructions
Link one node's output socket to another node's input socket. Socket numbers are 0-based positions, as reported by ap_node_list; the output node's material socket order is Base Color, Opacity, Occlusion, Roughness, Metallic, Normal Map, Emission, Height, Subsurface.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_id | Yes | Destination node id. | |
| from_id | Yes | Source node id. | |
| to_socket | No | Destination input socket index. | |
| from_socket | No | Source output socket index. |