Link pins
link_addConnect an output pin to an input pin in an IlluGen node graph, replacing existing links and rejecting pin type mismatches. Writes the project file.
Instructions
Connects an output pin of one node to an input pin of another.
Any existing connection into that input is replaced. Pin data kinds are checked (Grayscale, Color, UV...) and
a mismatch fails with an explanation. Parameter pins (e.g. 'Scale', 'Seed') let a Signal node (Oscillator,
Cycle, Constant...) drive a parameter; optional inputs (e.g. Levels 'In Low mod') are exposed automatically.
Subgraph pins are the labels of the subgraph's inner Node_Input/Node_Output nodes. Writes the project file in
place.
Returns: link {from_node, from_pin, to_node, to_pin} and warnings if any.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path of the .illugen project file. | |
| graph | No | Graph to work in: empty for the top-level graph, or the id or label of a Node_Subgraph node ('outer/inner' for nested subgraphs). | |
| to_pin | Yes | Input pin name on the destination node: a regular input, a parameter pin or a subgraph input. | |
| to_node | Yes | Destination node id or unique label. | |
| from_pin | Yes | Output pin name on the source node (see describe_node_type). | |
| from_node | Yes | Source node id or unique label. | |
| modulation_range | No | Only for parameter pins: [min, max] in 0..1 of the parameter range the Signal sweeps, or one [min, max] pair per vector component. Default: the full range. |