get_cook_status
Check whether a Houdini node actually recooked after a parameter change, whether it is time dependent or ended in error, and if the hip has unsaved changes.
Instructions
Whether a node has cooked, how often, and whether it is time dependent.
cook_count is the node's cook counter and needs_to_cook whether it is
dirty (its next read cooks it): compare them around a parameter change.
Nodes that never cook (/obj, OBJ containers, VOPs) always report
needs_to_cook True; a generator TOP reports False with no cooks.
Note the shape of the limitation: every command runs on Houdini's main thread, so a long cook blocks the bridge and cannot be polled while it runs. This answers the after-the-fact question instead -- did it really recook, is it time dependent, did it end in error -- plus whether the hip has unsaved changes. For asynchronous work use a ROP's background execution and get_render_progress.
Args: node_path: Node to report on.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_cook_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_path | No | /obj |