td_project_write
Convert edited project text dumps into new TouchDesigner .toe/.tox files, using the original file for unchanged data and reporting any gaps.
Instructions
Write an edited td_project_text dump back into a new .toe/.tox.
The return leg of td_project_text: edit the JSON, hand the whole document back here, and get a file TouchDesigner opens — with no instance running.
Three things to know before reaching for it, because each one is a silent wrong answer otherwise:
filemust still be the original the text came from. The dump covers five of the forty-odd kinds of file a .toe holds; panel layouts, replicator settings and custom parameter definitions live in the others and are copied across from the original. There is no path from text alone to a .toe.outputmust not exist. Repacking writes the file whole, and this tool will not overwrite anything of the user's. Write beside it and diff.Read the gaps in the reply. Anything the text asked for that could not be written — a new operator, a changed operator type, a custom parameter page — is listed rather than approximated, and the built file does not say what the text said.
Changing a parameter, its expression, a DAT's code, a table cell, the wiring, the flags, the placement or the colour all work, as does deleting an operator.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| text | Yes | ||
| output | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |