set_keyframe
Set a keyframe on a Houdini parameter at a given frame and value, with scene write and undo support.
Instructions
单关键帧写入(PR 19,场景写,可 undo)。
``path`` / ``parameter`` 必为非空字符串;``frame`` / ``value``
必须为有限浮点。value 创建 ``hou.Keyframe(float(value))`` 并
``keyframe.setFrame(float(frame))`` 后 ``parm.setKeyframe``。
字符串参数 / NaN / inf 等返回 status=error 不写。
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>",
"frame": "<frame>",
"value": "<value>"
},
"name": "set_keyframe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ctx | Yes | ||
| path | Yes | ||
| frame | Yes | ||
| value | Yes | ||
| parameter | Yes |