Rebuild network from a spec
rebuild_networkReconstruct a live TouchDesigner network inside a COMP from a JSON spec. Creates nodes, applies parameters, and wires inputs in one pass, with partial recovery on errors.
Instructions
Reconstruct a live network inside a COMP from a serialize_network spec — the REBUILD half of a git-diffable round-trip. Takes a JSON spec of nodes (name, operator type, parameters as constants/expressions/binds, inbound wires by name, optional x/y) and, in one pass, creates every node, applies its parameters and expressions, then wires inputs by resolving each from reference to the freshly created node. Fail-forward: an unknown operator type, missing parameter, or unresolved wire becomes a warning and the rest still build, so a partial reconstruction still returns useful results. Set clear_existing to delete the parent's current children first (destructive). Returns the created node names, wire count, parameters set, and any warnings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parent_path | Yes | COMP to rebuild the network inside. | |
| spec | Yes | A serialize_network spec to reconstruct. | |
| clear_existing | No | Delete existing children of parent_path first (destructive). |