set_expression
Write persistent Houdini parameter expressions with undo support. Choose hscript or python language for the expression.
Instructions
写入 parm 表达式(PR 19,参数通道持久写,可 undo)。
``language`` 接受 ``hscript`` / ``python``,映射到对应
``hou.exprLanguage``;其他值(包括大小写变体)一律
status=error。该命令属于参数通道数据写
(MUTATING_COMMANDS),**不**归为只读或 no-undo;与其他
关键帧 / 范围写共用 undo group 策略。
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": {
"ctx": "<ctx>",
"path": "<path>",
"parameter": "<parameter>",
"expression": "<expression>"
},
"name": "set_expression"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ctx | Yes | ||
| path | Yes | ||
| language | No | hscript | |
| parameter | Yes | ||
| expression | Yes |