Serialize network to diffable JSON
serialize_networkSerialize a TouchDesigner node network into a git-diffable JSON specification for version control and change tracking.
Instructions
Read-only: serialize a COMP's immediate children into a git-diffable JSON spec — each node's name, op type, parameters (with mode + expression, not just the evaluated value), input wires by source node name, and position — plus best-effort custom-parameter definitions. This is the serialize half of a round-trip pair: feed the output spec to rebuild_network to reconstruct the subtree. Use it to snapshot a network as text you can diff across edits or commit to version control. Returns {root, nodes[], truncated?, warnings[]}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Root COMP whose children to serialize into a diffable spec. | |
| max_nodes | No | Cap nodes serialized. | |
| include_custom_params | No | Include custom-parameter definitions (best-effort). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | Yes | The serialized root path. | |
| nodes | Yes | Every serialized child node of the root. | |
| truncated | No | True when the child count exceeded max_nodes and the spec was capped. | |
| warnings | Yes | Per-item problems collected without failing the read. |