create_spare_parameter
Add a spare parameter to a node.
Instructions
Add a spare parameter to a node.
A menu needs its items: a menu without any is refused, not created with
Houdini's "none" placeholder. The reply reads the menu back from the node
(menu_items as [value, label] pairs, default_value as a value).
Args: node_path: Node path. parm_name: Internal parameter name. parm_type: "float", "int", "string", "toggle", or "menu". label: UI label. default_value: Default value. For a menu, the default item by value or index. min_val: Minimum value (float/int only). max_val: Maximum value (float/int only). menu_items: A menu's items, as set_hda_interface takes them: plain strings, or [value, label] pairs such as [["0", "Uniform"], ["1", "By Attribute"]].
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes | ||
| max_val | No | ||
| min_val | No | ||
| node_path | Yes | ||
| parm_name | Yes | ||
| parm_type | Yes | ||
| menu_items | No | ||
| default_value | No |