Save / load component (.tox)
manage_componentSave any COMP as a reusable .tox component file, or load a .tox into your TouchDesigner project as an independent copy or a live-linked instance.
Instructions
Build a reusable component library: save any COMP as a .tox file, or load a .tox back into the project (as an independent copy, or a live-linked instance via linked). Paths are on the machine running TouchDesigner.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | save a COMP to a .tox file, or load a .tox into the project. | |
| file_path | Yes | Absolute path to the .tox file (e.g. '/Users/me/components/widget.tox'). | |
| comp_path | No | (save) The COMP to save as a reusable .tox component. | |
| parent_path | No | (load) COMP to place the loaded component inside. | /project1 |
| linked | No | (load) Create a live-linked instance (externaltox) that re-reads the file on change, instead of an independent copy. | |
| name | No | (load, linked) Name for the linked COMP; defaults to the file name. | |
| create_folders | No | (save) Create the parent folders if they do not exist. |