Set Text DAT source
td_set_dat_textReplace the body of a Text, GLSL, Script, or callback DAT in TouchDesigner via its absolute operator path. Optionally specify expectedText to conditionally overwrite only when current content matches.
Instructions
Replace a Text DAT, GLSL DAT, Script DAT, or callback DAT body.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>",
"text": "<text>"
},
"name": "td_set_dat_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute TouchDesigner operator path, for example /project1/visuals/noise1 | |
| text | Yes | ||
| expectedText | No |