td_palette_load
Install a TouchDesigner palette component into your project by name, resolving the correct .tox path from the index and verifying it on disk before loading.
Instructions
Install one of TouchDesigner's palette components into the project.
Reach for this the moment td_palette shows a component that does what you
were about to build by hand — it is one call, where the alternative is
td_exec with a loadTox path you have to get exactly right, on a machine
whose TouchDesigner may not be installed where you assume.
name is the component name td_palette reports. The .tox path comes from
the index and is checked on disk before anything is sent, so a stale index
fails here rather than as a TouchDesigner traceback. Fourteen palette names
exist in two folders each (the Ableton set, operatorPath,
vrRenderToMovie): those are refused with the candidates listed until you
narrow them with category.
The node's final name is reported back rather than assumed: TouchDesigner
names a loaded component after its file, and numbers it (checker1,
checker2) when a sibling already holds that name. rename is stricter —
a name already taken is refused outright and the load is rolled back, so
read the path in the reply rather than assuming the name you asked for.
Loading is not free: measured 0.006 s for a 20-operator component and 1.08 s for kantanMapper's 4,079, all of it on TouchDesigner's main thread.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| owner | No | ||
| parent | No | /project1 | |
| rename | No | ||
| category | No | ||
| position | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |