press_button
Press a Houdini button parameter—like Stash Input, Reload Geometry, or a node's Build—then read resulting errors, warnings, or cook status. Useful for triggering actions and verifying node health.
Instructions
Press a button parameter — "Stash Input", "Reload Geometry", an asset's own Build button — and read the node's errors and warnings afterwards.
The call holds until the callback returns, with no deadline. A callback that opens a dialog blocks Houdini's main thread and this bridge with it; read the button's script first if in doubt. For a Save to Disk or a render use write_cache / start_render, which report a verdict.
A press usually only dirties the node, so errors/warnings are from
its last cook unless cook=True; without it needs_cook says whether
they are stale (a cook that failed leaves it True too). has_script_callback is False for built-in buttons that still
do work (File's Reload, Stash's Stash Input).
Args: node_path: Node that owns the button. parm_name: The button parameter's name. arguments: Optional kwargs handed to the callback script; values must be int, bool, float or str. cook: Cook the node after the press so errors describe the result.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cook | No | ||
| arguments | No | ||
| node_path | Yes | ||
| parm_name | Yes |