Unlink pin
link_removeDisconnect a node's input pin by removing incoming links in an IlluGen project, then save the file and resolve any parameter that loses its driving link.
Instructions
Disconnects an input pin: removes the link(s) arriving at to_pin of to_node.
Writes the project file in place. If the pin drove a parameter, the parameter gets a fixed value again (its
default if it had none). Removing nothing is not an error. node_get lists a node's incoming links.
Returns: removed, the number of links deleted (0 if the pin was not connected).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 to disconnect. | |
| to_node | Yes | Node id or unique label whose input is disconnected. | |
| from_node | No | Optional: only remove links coming from this node (id or unique label). Empty = from any node. |