set_expression
Set a per-frame TCL expression on a Nuke node knob to drive animated values, with regex pre-flight blocking forbidden Python or TCL system calls.
Instructions
Set a TCL expression on a knob. The expression is evaluated per-frame.
Common expressions: frame, frame/24.0, sin(frame*0.1), [value other_node.knob]
A regex pre-flight rejects expressions that wrap forbidden Python
calls in [python ...] callouts or invoke TCL system/exec/
unlink directly.
Args: node: node name. knob: knob name to set expression on. expression: Nuke TCL expression string.
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": {
"node": "<node>",
"knob": "<knob>",
"expression": "<expression>"
},
"name": "set_expression"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| knob | Yes | knob name to set expression on. | |
| node | Yes | node name. | |
| expression | Yes | Nuke TCL expression string. |