create_spare_parameter
Create a single spare parameter on a Houdini node, choosing its data type (float, int, string, toggle, or menu) and setting optional attributes like label, default, min/max, and menu items.
Instructions
单项 spare 参数创建(add-node-parameter-vex-tools,MUTATING)。
通过 ``parmTemplateGroup()`` 复制 + 一次性
``setParmTemplateGroup()`` 提交。``data_type`` 接受 ``float / int /
string / toggle / menu``。``folder`` 可选。响应过
``apply_response_cap``。
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>",
"name": "<name>",
"data_type": "<data_type>"
},
"name": "create_spare_parameter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ctx | Yes | ||
| name | Yes | ||
| path | Yes | ||
| label | No | ||
| folder | No | ||
| default | No | ||
| data_type | Yes | ||
| max_value | No | ||
| min_value | No | ||
| menu_items | No | ||
| menu_labels | No | ||
| num_components | No |