td_variant_save
Create a labeled snapshot of a TouchDesigner project's current state, then restore it later or compare it against other snapshots to track exactly what changed.
Instructions
Keep the current state of a .toe/.tox so it can be returned to and compared.
Take one before trying a direction, another after, and td_variant_diff says exactly what the direction changed. Nothing of the user's is touched: the variant is the network text plus a byte copy of the file, kept under ~/.td-atlas/variants and grouped by the project's path.
That copy is what makes a restore possible at all: the rebuild is a patcher, so the text alone cannot produce a .toe. It is also cheap — measured across the shipped palette, the copy adds a median 19% on top of the text and no measurable time.
label may hold letters, digits, dot, dash and underscore. A label
already in use is refused rather than overwritten. path narrows only the
stored text to a subtree; the copy is always the whole file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| note | No | ||
| path | No | ||
| label | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |