Save / load component (.tox)
manage_componentBuild a reusable component library by saving TouchDesigner COMPs to .tox files and loading them back, with safe overwrite handling.
Instructions
Build a reusable component library by moving COMPs to/from .tox files on disk. 'save' uses a deferred, verified same-directory temporary export and refuses overwrite by default; set overwrite_policy='ask' for native Overwrite/Keep consent. 'load' keeps its legacy behavior and reads file_path into parent_path. Paths are on the machine running TouchDesigner.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | (load, linked) Name for the linked COMP; defaults to the file name. | |
| action | Yes | save a COMP to a .tox file, or load a .tox into the project. | |
| linked | No | (load) Create a live-linked instance (externaltox) that re-reads the file on change, instead of an independent copy. | |
| comp_path | No | (save) The COMP to save as a reusable .tox component. | |
| file_path | Yes | Absolute path to the .tox file (e.g. '/Users/me/components/widget.tox'). | |
| parent_path | No | (load) COMP to place the loaded component inside. | /project1 |
| create_folders | No | (save) Create the parent folders if they do not exist. | |
| idempotency_key | No | (save) Opaque retry key for response-loss recovery. | |
| overwrite_policy | No | (save) Refuse an existing target, or ask through the native TouchDesigner broker before overwrite. | refuse |
| operation_timeout_ms | No | (save) Bounded polling deadline for the deferred export job. | |
| confirmation_timeout_ms | No | (save) Bounded wait for native overwrite consent. |