Houdini MCP
v0.8.1Connect agents to SideFX Houdini: edit the scene, cook, render, see the viewport, read the docs.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
batch
Run several Houdini tools in one call. Use it to build a network: many nodes, their wires and their parameters go in one round trip and one undo group, and a person can undo the whole thing with one keystroke. Do not use it when a later step needs to read what an earlier step made. The list runs without you in the middle, so nothing can branch on a result. A path is the exception: give a step an `id`, and a later step writes "$<id>" where it needs the path of the node that step made. So a network of default node names (box1, attribwrangle3) needs no guess of t…
| Parameter | Type | Description |
|---|---|---|
operations * | array | The steps, in order. Each is {"tool": "<tool name>", "params": {...}}, with the arguments that the tool takes on its own. Any tool of this server except batch. Add "id": "name" to a step, and a later… |
capture
Make a picture of the scene, or of the network editor, and look at it. Modes: viewport, quad, camera, flipbook, sheet, movie, network. Use it to confirm your own work: numbers in a node do not tell you that the result looks wrong. Use it before you report that a task is done. Do not use it for a final picture: render does that through a ROP. The view goes back to where the user left it when the picture is written. Nothing here changes the scene for good. mode: "viewport" — the viewport as it is now. "quad" — four pictures: top, front, ri…
| Parameter | Type | Description |
|---|---|---|
azimuth | number | Degrees around the up axis, around what the view frames. 0 looks from the front. Nothing is added to the scene. |
azimuths | array | sheet: a list of angles; each frame is drawn from each angle. |
background | integer | sheet and movie: the grey of the background, 0-255. Smoke reads best on mid grey. |
bounds | array | sheet: [xmin, ymin, zmin, xmax, ymax, zmax], the box to frame. |
camera | string | camera mode: the camera node to look through. On a LOP network with `renderer`, a USD camera prim. |
color_by | string | sheet and movie: colour the points by this attribute, blue at the low end of color_range and red at the high end. A vector uses its length. |
color_range | array | [low, high] for color_by. Without it, [0, 1]. |
columns | integer | sheet: tiles in each row. |
contour | number | sheet: a step. Colour by the fraction of the value over the step, so the lines of equal value show, for example the shells of a distance field. |
count | integer | sheet: how many tiles, when frames is not given. |
direction | string | The view axis: "top", "front", "left", "right", "back", "bottom" or "persp". |
elevation | number | Degrees above the ground, with azimuth. 30 with azimuth 45 is a three-quarter view. |
fill | number | How much of the picture the framed thing takes: 0.9 leaves air around it, 1.0 fills it. |
fps | number | movie: frames per second. |
frame | string | What to frame the view on: "selection", "all", or a node path (the box of what that node cooked). |
frame_range | array | flipbook and movie: [start, end]. |
frames | One frame, a list, or {"start": 1, "end": 10, "step": 2}: one picture for each. sheet: the frames of the tiles. The playbar goes back after. A picture that holds only the background is an error. | |
look_from | array | [x, y, z]: the point that the view looks from. |
mode | string | One of "viewport", "quad", "camera", "flipbook", "sheet", "movie", "network". |
node | string | The node to look at. It gets the display flag for the picture, and the flag goes back after. The viewer shows its network, and goes back after. Without `frame`, the view also frames it. |
output | string | The file to write. Without it, a temporary file. |
paths | array | network: the items to frame in the network editor. |
radius | number | The distance between target and look_from. |
reference | string | sheet: a picture file to put in the first tile, to compare. |
renderer | string | The Hydra renderer of a viewer on a LOP network, for example "Karma CPU". An unknown name lists the ones available. |
resolution | array | [width, height] in pixels. The height follows the shape of the viewport, so the picture is not stretched. |
settle | number | Seconds that a renderer such as Karma draws before each picture. Karma starts from noise: 20 to 30 gives a clean frame. With frames or in flipbook mode it renders a sequence through the viewport, with… |
shading | string | One of "smooth", "smooth_wire", "flat", "wireframe". |
slab | array | [axis, thickness], for example ["z", 0.1]: draw only the points in a thin cut through the middle, so the inside of a solid cloud shows. |
start | number | sheet: the first frame. Without it, the current frame. |
step | number | sheet: the frames between tiles. Over 2 hides movement and gives a warning. |
target | array | [x, y, z]: the point that the view turns around. |
tile_width | integer | sheet: the width of each tile in pixels. |
vectors | number | sheet: a scale. Draw a line along the color_by vector from up to about 3000 points. An empty result is an error. |
connect
Change how nodes feed each other. Modes: connect, disconnect, reorder. Use it after node_edit made the nodes. A list of wires goes in one undo group and one round trip. Do not use it to wire a node that you make now: node_edit mode "create" takes `input_path` and wires it in the same call. Do not use it to read the wires: scene_overview mode "network" lists them. mode: "connect" — src_path feeds dst_path. dst_input_index chooses the input, src_output_index the output. Both count from 0. A wire into an in…
| Parameter | Type | Description |
|---|---|---|
dst_input_index | integer | connect: the input of dst_path, from 0. |
dst_path | string | connect: the node or network dot whose input takes the wire. |
input_index | integer | disconnect: the input that loses its wire, from 0. |
input_indices | array | reorder: the old input indices in their new order, for example [1, 0]. |
items | A list of wires for "connect" or "disconnect", each a dictionary with the keys of one wire, for example {"src_path": "/obj/geo1/grid1", "dst_path": "/obj/geo1/mountain1"}. An argument outside items is… | |
mode | string | One of "connect", "disconnect", "reorder". |
path | string | disconnect and reorder: the node whose inputs change. |
src_output_index | integer | connect: the output of src_path, from 0. |
src_path | string | connect: the node or network dot whose output feeds the wire. |
console
Read the Houdini log and the node errors. Use it when something did not do what you expected. A cook error often hides behind an empty result: the geometry has no points, and the reason is here. Do not use it for the errors of nodes that you cook now: cook returns them, with the nodes upstream that failed. scene_overview mode "errors" lists every node with a cook error, without the log. Each call takes the log entries away, so a call returns only what is new since the call before it. Returns JSON.
| Parameter | Type | Description |
|---|---|---|
limit | integer | How many log entries come back, the newest ones. |
node_errors | boolean | Also report the nodes under root_path that hold an error or a warning. False gives the log alone. |
node_limit | integer | How many nodes with an error or a warning come back. Errors come first, and the report says how many it left out. |
root_path | string | The network that node_errors walks, for example /obj or /stage. |
severity | string | Keep one level only: "message", "important", "warning", "error" or "fatal". |
source | string | Keep the entries whose source holds this text, for example "Python". |
cook
Force work to happen, and report what the work said and what it cost. Modes: cook, cache_write, cache_clear, sim_step, sim_reset, recook. Use it to run a test: write a few parameters, cook a range of frames, and read the seconds for each frame. That is one call, and it is the loop that every look iteration needs. Do not use it to read the result: geometry_inspect does that, and it cooks the node as well. mode: "cook" — cook the nodes and return the errors, the warnings and the time. `frames` or `frame_range` cooks over mo…
| Parameter | Type | Description |
|---|---|---|
paths * | The node to cook, or a list of nodes. | |
force | boolean | Cook even when Houdini thinks the node is up to date. |
frame_range | array | [start, end]: every frame between. For cook and cache_write. |
frames | One frame, a list of frames, or {"start": 1001, "end": 1010, "step": 2}. For cook. The playbar goes back after. | |
mode | string | One of "cook", "cache_write", "cache_clear", "sim_step", "sim_reset", "recook". The description says what each one does. |
num_steps | integer | How many frames sim_step steps the DOP network. |
parameters | object | Values to write before the cook, as {"/obj/geo1/pyro": {"divsize": 0.05}}. The result says which writes changed nothing. |
docs
Read the official Houdini documentation. This is the authority on every node, parameter, VEX function and HOM call. Read the page before you use an API that you have not confirmed in this session: names and enum members change between Houdini releases, and a wrong one often fails without a message. Do not answer from memory, and do not read sidefx.com yourself. The pages come from the Houdini install on this machine, so they match the build exactly. The first search on a build indexes it once, which takes a few seconds; the index stays on disk. A page read ne…
| Parameter | Type | Description |
|---|---|---|
build | string | The Houdini build to read, for example "21.0.829". Default: the build of the attached session, then $HFS, then the newest build on this machine. |
category | string | query: keep the search inside one folder, for example "nodes/sop", "vex/functions" or "hom/hou". node with a type name: the context, for example "sop" or "lop". |
limit | integer | query: how many hits come back. |
node | string | A node path in the scene, for example "/obj/geo1/attribwrangle1", or a node type name, for example "mountain". Returns the page of that node type. |
page | string | A page path from a hit, for example "nodes/sop/copytopoints". A loose name or a sidefx.com address also works. |
part | integer | A long page comes in parts of about 20,000 characters: 2, 3 and so on read the next ones. |
query | string | Words to search, for example "copy to points". Returns the hits with their page paths. |
section | string | Read only the part of a page under one heading, for example "Quick renders and flipbooks". A long page lists its headings. |
execute
Run code in Houdini, with the full `hou` module and no guard. Modes: python, hscript, expression, vex_check, env, job. Use it for what no other tool covers, and to confirm an API in the live session, for example `print(dir(hou.Node))`. The code runs with the rights of the Houdini process: it can write files, delete nodes and quit Houdini. Do not use it to build a network: one batch of node_edit create, connect and parm_set is also one round trip, and each step reports its errors. `hou.Node.inputs()` skips network dots and gives the node behind them; use `inpu…
| Parameter | Type | Description |
|---|---|---|
args | array | file: the values of sys.argv[1:]. |
background | boolean | python: return at once with a job id and let the script run. Read it with mode job. Until it ends, other calls are refused. |
file | string | A Python file to run instead of source, as from a shell: __file__ is its path, __name__ is "__main__", args are in sys.argv[1:]. The text travels once. |
globals | object | Names that exist before the script runs, for example {"radius": 2.0}. |
job | string | job: the job id that background returned. |
language | string | expression: "hscript" or "python". |
mode | string | One of "python", "hscript", "expression", "vex_check", "env", "job". |
name | string | env: the Houdini variable to read, for example "HIP". |
source | string | The code: Python, HScript, an expression or VEX, as mode says. |
timeout | number | The seconds the script may run. Past it, the script stops where it is, the answer says where, and what it changed stays. |
wait | number | job: the most seconds to wait for the job to end. The answer comes when it ends or when the wait is over, with what it printed so far. |
geometry_inspect
Read the geometry that a node produces. This cooks the node. Modes: summary, points, prims, attrib, groups, group_members, bbox, intrinsics, nearest, skeleton, compare, try, volume_stats, volume_voxels, volume_sample, volume_compare, image, volume, export, fingerprint, stretch, inside, crossings, distance, changes. Use it to confirm that a node made what you expected: the point count, an attribute that a wrangle wrote, the shape of a volume, the size of the bounding box. Do not use it to read parameters: node_inspect does that. mode: "summary" — cou…
| Parameter | Type | Description |
|---|---|---|
path * | The SOP or COP node to read, or a list. A list keeps going after a node that fails, and each result names its path. | |
against | string | compare: the node to compare with. distance: the node to measure to. volume_compare: the field whose bands hold the field `name`. fingerprint: the name of a saved fingerprint to compare with. stretch:… |
attrib_class | string | attrib, try: "point", "prim", "vertex" or "detail". |
attrib_name | string | attrib, try: the attribute to read. try reads it on the result. |
attribs | array | points: the attributes to return, for example ["P", "Cd"]. changes: the attributes whose mean, min and max to follow. |
bins | volume_stats, volume_sample, volume_compare: a count of equal bands, or a list of band edges, for example [-1, 0, 0.05, 0.15, 0.25]. | |
count | integer | points, prims: how many elements. Keep it small: a large read is slow. |
file | string | export: the file path to write. |
format | string | export: the file type, for example "obj" or "bgeo". |
frames | Read at other frames, without moving the playbar: one frame, a list, or {"start": 1001, "end": 1010, "step": 2}. One answer for each frame. | |
from_node | string | volume_sample: read at the points of this node. volume_compare: the node that holds `against`, such as a collider SDF. |
group_name | string | group_members: the group to read. |
group_type | string | groups, group_members: "point", "prim", "vertex" or "edge". |
limit | integer | attrib: how many values (10). volume_voxels: how many numbers before the array is thinned. volume_sample: return the values when there are at most this many (1000). stretch: how many of the worst edge… |
match_attrib | string | compare: the attribute that pairs the points of the two nodes, not their order. |
mode | string | One of "summary", "points", "prims", "attrib", "groups", "group_members", "bbox", "intrinsics", "nearest", "skeleton", "compare", "try", "volume_stats", "volume_voxels", "volume_sample", "volume_compa… |
name | string | volume_stats: one volume to read. volume_voxels, volume_compare: the field. fingerprint: save the result under this name. |
names | array | volume_sample: the fields to read. |
output | The output of the node to read, 0 by default. A KineFX import has the mesh on 0, the rest skeleton on 1, the animated skeleton on 2. | |
pattern | string | skeleton: keep the joints whose name matches. |
plane_name | string | image: the COP plane to read, for example "C". |
position | array | nearest: [x, y, z]. |
positions | array | volume_sample: the [x, y, z] points to read at. |
prim_index | integer | intrinsics: the primitive to read. |
reduce | string | volume_voxels: one answer instead of the array: "sum", "mean", "max", "min", "project_x", "project_y" or "project_z". |
renamed | object | fingerprint: {"old path": "new path"} for the nodes that a refactor renamed or moved. |
split_by | string | crossings: a prim attribute, such as "name", whose values are the parts that the count pairs. |
start | integer | points, prims, attrib: the first element. Page with it. |
steps | array | try: a list of {"node_type": ..., "parameters": {...}} to run on the geometry. A menu takes its token or its index. Nothing changes in the scene. |
threshold | number | volume_stats, volume_sample: count the voxels below and above it. volume_stats also gives the world box of the voxels above it. stretch: the growth to count, 0.1 (10 %) by default. inside: count the p… |
unique | boolean | attrib: return each value that occurs and how many elements carry it. That is how you find the pieces in a geometry. |
hda
Read and change Houdini digital assets. Modes: list, get, install, uninstall, reload, update, create, sections, section_get, section_set. Use it when a node type comes from a .hda file: to find the file, to load a new one, or to read the scripts and the help inside it. Do not use it for the parameters of one node in the scene: node_inspect does that. mode: "list" — the installed assets. `category` filters, for example "Sop". "get" — the definition of `node_type`: the file, the version…
| Parameter | Type | Description |
|---|---|---|
category | string | list: keep one node category, for example "Sop". |
content | string | section_set: the text to write into the section. |
file_path | string | install, uninstall, reload: the .hda file. create: the file to write. |
label | string | create: the name that the TAB menu shows. |
mode | string | One of "list", "get", "install", "uninstall", "reload", "update", "create", "sections", "section_get", "section_set". |
name | string | create: the type name of the new asset. |
node_path | string | update: the node to save into its asset. create: the subnet to make an asset from. |
node_type | string | get, sections, section_get, section_set: the asset type, as list names it, for example "labs::edge_damage::1.0", or with its category, "Sop/labs::edge_damage::1.0". |
section_name | string | section_get, section_set: the section, for example "PythonModule". |
node_edit
Change the nodes in a network. One item, or a list in one undo group. Modes: create, delete, copy, move, rename, flags, color, layout, insert, place_chain, wrangle, material, assign_material, take, current_network, note, box, split. Use it to build a network. Then use parm_set for the values, and connect for the wires. Keep the default names that Houdini gives: leave `name` out, except for the one Output SOP of a network (OUT_<NAME>). A create that breaks a house rule (an Expression SOP, a second Output SOP, a long wrangle) gives `house_rule` in its result. Do no…
| Parameter | Type | Description |
|---|---|---|
bypass | boolean | flags: the bypass flag. |
code | string | wrangle: the VEX snippet. |
code_file | string | wrangle: read the VEX from this file, so a long snippet travels once. |
color | array | color, note, box: [r, g, b] from 0 to 1. |
context | string | create: the network kind, "sop" (default), "cop", "chop", "lop" or "material_network". |
destination_path | string | copy, move: the network to put the nodes in. |
display | boolean | flags: the display flag. |
force | boolean | delete: delete a node that still feeds a node that stays. |
input_index | integer | place_chain: the input of reader that the chain feeds. |
input_path | string | create: the node that feeds the new node. It saves a connect call and places the node under its input. insert: the node whose output wires get the new node. |
items | A list of items for a repeated action, each a dictionary with the keys of one call. An argument outside items is the default for each one. | |
material_path | string | assign_material: the material node. |
material_type | string | material: the shader type, for example "principledshader". |
mode | string | One of "create", "delete", "copy", "move", "rename", "flags", "color", "layout", "insert", "place_chain", "wrangle", "material", "assign_material", "take", "current_network", "note", "box", "split". |
name | string | create, material: the name of the new node. take: the name of a new take. |
names | object | copy: a new name for each source, by source path or name. |
new_name | string | rename: the new name. |
node_type | string | create: the node type, for example "box" or "attribwrangle". |
parameters | object | create, material: values to set on the new node, by parameter name. |
parent_path | string | create, wrangle, note: the network that gets the new node. |
path | string | The node to change. layout: the network. delete: a node, a sticky note or a network box. |
paths | array | copy: the nodes to copy. delete: the nodes to delete together. layout: place only these nodes. place_chain: the chain, in order. box: the nodes to put in the box. |
position | array | create, move, note: [x, y] on the canvas. |
reader | string | insert: only the wires into this node. place_chain: the node that the chain feeds. |
render | boolean | flags: the render flag, which is not the display flag. |
replace | array | wrangle: edit the snippet in place, a list of {"old": ..., "new": ...}. Each old must appear exactly once. |
stages | object | split: {"stage name": ["node", ...]}, the nodes of `path` for each subnet. |
suffix | string | copy: text added to the name of each copy. |
take_name | string | take: the take to make current. |
text | string | note: the text of the note. box: the comment of the box. |
node_inspect
Read one node, or a list of nodes, without changing anything. Modes: info, parms, schema, changed, names, expression, keyframes, code, cook_chain, explain, material, image, channels, simulation, render_settings, cache, time_dependency, validate, layout, readers. Use it before you write: to confirm a parameter name, to see whether a parameter carries an expression, and to read what a node reports after a cook. Do not use it to list a network: scene_overview does that. mode: "info" — type, inputs, outputs, flags, changed parameters. "parms…
| Parameter | Type | Description |
|---|---|---|
paths * | One node path, or a list. A list keeps going after a node that fails, and each result names its path. | |
channel | string | channels: the CHOP channel whose samples to read. |
end | number | channels: the last sample frame. |
field_name | string | simulation: the field of object_name to read. |
fields | array | parms, changed: keep only these keys of each parameter, for example ["value", "expression"]. The name is always kept. |
frames | Read at another frame, or at several: one frame, a list, or {"start": 1, "end": 10, "step": 2}. With time_dependency, time each node. The playbar goes back after. | |
has_expression | boolean | parms: keep only the parameters that carry an expression. |
include_all_parms | boolean | info: list every parameter, not only the ones that changed. |
mode | string | One of "info", "parms", "schema", "changed", "names", "expression", "keyframes", "code", "cook_chain", "explain", "material", "image", "channels", "simulation", "render_settings", "cache", "time_depen… |
object_name | string | simulation: the DOP object to read. |
parm | string | parms, expression, keyframes, readers: the parameter name. |
pattern | string | parms, changed: keep the parameters whose name or label holds this text or matches it as a glob. "|" separates alternatives: "time|step|cfl". |
start | number | channels: the first sample frame. |
parm_set
Write parameter values, or press a button. One write, or a list in one undo group. Modes: value, press, expression, keyframe, keyframes, delete_keyframe, revert, lock, link, spare, render_settings, chop_export, snapshot, restore, diff. Use it after node_inspect has confirmed the parameter name and the type. A write can be accepted and change nothing, and Houdini says nothing. This tool looks for all six causes and names the one it found: - the parameter carries an expression, which still decides the value; - the parameter is animated, so the value became a ne…
| Parameter | Type | Description |
|---|---|---|
channel_name | string | chop_export: the channel that drives the parameter. |
chop_path | string | chop_export: the CHOP node. |
default | spare: the default of one control. | |
expression | string | expression: the expression text. |
follow_reference | boolean | Write the node at the other end of a channel reference. Without it, a write through a reference is refused. |
frame | number | keyframe, delete_keyframe: the frame of the key. |
items | A list of writes, each a dictionary with the keys of one call. An argument outside items is the default for each one. | |
keyframes | array | keyframes: a list of {frame, value}. |
label | string | spare: the label of one control. |
language | string | expression: "hscript" or "python". |
locked | boolean | lock: true locks the parameter, false unlocks it. |
mode | string | One of "value", "press", "expression", "keyframe", "keyframes", "delete_keyframe", "revert", "lock", "link", "spare", "render_settings", "chop_export", "snapshot", "restore", "diff". |
name | string | spare: the name of one control. snapshot, restore, diff: the record on disk. |
parameters | value: several names and values in one write, as a dictionary. spare: the list of controls to add. | |
parm | string | The parameter name, for example "tx" or "divsize". |
parm_type | string | spare: the type of one control, for example "float" or "toggle". |
path | string | The node that holds the parameter. |
paths | array | snapshot: the nodes to save; "/obj/geo1/*" names every node in a network. restore: put back only these nodes. |
settings | object | render_settings: the ROP parameters to write, by name. |
src_parm | string | link: the parameter to follow. |
src_path | string | link: the node to follow. |
value | value, keyframe: the value to write. A menu takes its token. |
pdg
Cook a TOP network, and read what its work items did. Modes: status, workitems, cook, dirty, cancel. Use it for a TOP network only. A TOP node does not cook like a SOP: it makes work items, and each item runs on its own. For a SOP or a DOP, use cook. For a ROP, use render. mode: "status" — the counts for each state, and whether a cook runs now. "workitems" — the items. `state` filters, for example "failed". "cook" — start the cook. The call comes back at once; read "status" after it to follow the work. "…
| Parameter | Type | Description |
|---|---|---|
path * | string | The TOP network or the TOP node. |
dirty_all | boolean | dirty: also remove the outputs of the node on disk. |
mode | string | One of "status", "workitems", "cook", "dirty", "cancel". |
state | string | workitems: keep the items in this state, for example "failed" or "cooked". |
playbar
Read or set the time of the session. Modes: get, frame, range, playback, play. Use it before you read geometry that changes over time: a SOP cooks at the current frame, so the frame decides what you see. Do not use it only to read another frame: geometry_inspect, node_inspect and stage_inspect take `frames` and put the playbar back after. A frame that you set here stays for the person and for every later call, and "range" also changes what a flipbook covers, and a ROP whose range follows $FSTART and $FEND. mode: "get" — the current frame a…
| Parameter | Type | Description |
|---|---|---|
action | string | play: "play", "stop", "next", "previous", "start" or "end". |
end | number | range and playback: the last frame. |
frame | number | frame: the frame to go to. |
mode | string | One of "get", "frame", "range", "playback", "play". |
start | number | range and playback: the first frame. |
render
Start a render, read its settings, or watch it run. Modes: start, progress, settings, create, watch, stats, compare. Use it for a final picture through a ROP node. For a fast look at the viewport, use capture instead: it is much quicker. mode: "start" — render the ROP at `path`. `frame_range` is [start, end]; without it the node renders its own range. `output_path` and `res_scale` hold for this render only: the ROP keeps the output and the size of the user. Use them for test rend…
| Parameter | Type | Description |
|---|---|---|
background | boolean | start: render the saved .hip file in a separate hython, so Houdini stays free. The scene must have no unsaved changes. |
frame_range | array | start: [start, end] or [start, end, step]. Without it the ROP renders its own range. |
mode | string | One of "start", "progress", "settings", "create", "watch", "stats", "compare". |
name | string | create: the name of the new ROP. |
output_path | string | start: the image file for this render only (put $F4 in it for a range). watch, stats, compare: the image file. |
parent_path | string | create: the network that gets the ROP. |
path | string | start, progress, settings: the ROP node. |
reference | string | compare: the image to compare `output_path` with. |
render_type | string | create: the ROP kind, for example "opengl", "karma", "mantra" or "ifd". |
res_scale | number | start: a fraction of the resolution for this render only, 0.5 is half. |
wait | boolean | start: return when every image is complete, with its render stats. |
scene_file
Read, save or load the scene file, or step its undo history. Modes: info, save, load, undo, redo, merge, list_file. Use "save" before a change that is hard to undo, and use "info" to learn whether the session holds work that is not saved. mode: "info" — the file name, the frame range, the counts, and whether the session has changes that are not saved. "save" — save to `path`, or over the open file when `path` is empty. "load" — open the .hip file at `path`. Everything in the session goes away, and the undo histo…
| Parameter | Type | Description |
|---|---|---|
count | integer | undo and redo: how many steps. |
mode | string | One of "info", "save", "load", "undo", "redo", "merge", "list_file". |
nodes | array | merge: the node paths to bring from the other file. list_file: the networks to list. |
path | string | save: the file to write; empty saves over the open file. load: the .hip file to open. merge, list_file: the other .hip file. |
scene_overview
List what the scene holds. Start here, before you touch a node. Modes: scene, network, children, search, node_types, errors, materials, lights, takes, caches, render_nodes, viewports, changes. Use it to find a node path, to see the shape of a network, or to learn which node types this Houdini has. Do not use it to read one node in detail: node_inspect does that. Do not use it to read geometry: geometry_inspect does that. mode: "scene" — file, frame range, counts, and the top of the tree. "network" — the children of one network by name…
| Parameter | Type | Description |
|---|---|---|
category | string | node_types: the context, for example "Sop", "Object", "Lop" or "Driver". |
compact | boolean | network: return only the wires, one line each. |
mode | string | One of "scene", "network", "children", "search", "node_types", "errors", "materials", "lights", "takes", "caches", "render_nodes", "viewports", "changes". |
node_type | string | search, network: keep the nodes of this type, for example "null". |
path | string | A node path such as "/obj" or "/obj/geo1": the network to list or to search. |
pattern | string | search: the name to match, with * and ? as wildcards. network, node_types: keep the names that match; "|" separates alternatives, for example "*retarget*|*ik*". |
recursive | boolean | children: also list the children of the children. |
select
Read the node selection, or set it. Use it to see what the person works on before you change the scene, and to show them your result when you are done. Do not use it to find nodes: scene_overview mode "search" does that. A path is the full path of a node, for example "/obj/geo1/mountain1". A path that is not a node stops the call with an error, and the selection stays as it was. Returns JSON with the selected paths.
| Parameter | Type | Description |
|---|---|---|
paths | Leave it out to read the selection. One path or a list of paths replaces it. An empty list clears it. |
session
Report the Houdini sessions, choose one, or start, stop or interrupt one. Actions: status, list, attach, detach, interrupt, start, start_gui, stop. Use it first when a tool says that Houdini is not reachable, and use it to learn the Houdini version before you use an API that changed between releases. Several Houdini sessions can listen at the same time: the graphical one that holds the work of the user, and a headless one for your own tests. Every tool result names the session that answered, in `_session`. Read that line when a scene looks empty or wrong: an…
| Parameter | Type | Description |
|---|---|---|
action | string | One of "status", "list", "attach", "detach", "interrupt", "start", "start_gui", "stop". |
hip | string | start_gui: the .hip file to open. |
port | integer | attach: the port of the Houdini to talk to, from list. interrupt: the Houdini to interrupt, when not the attached one. |
version | string | start and start_gui: the Houdini release, for example "21.0" or "21.0.829". |
stage_inspect
Read the USD stage at a LOP node. This cooks the node. Modes: stage, prims, prim, search, layer, attribute, composition, variants, stats, modified, lights, transform, profile. Use it in a Solaris (LOP) network to see the prims, the layers and the composition that a node produces. Do not use it for SOP geometry: geometry_inspect does that. mode: "stage" — the stage: prim count, layers, the default prim. "prims" — the prim tree from `root_prim`, `max_depth` deep. "prim" — one prim at `prim_path`. include_attrs=True adds its…
| Parameter | Type | Description |
|---|---|---|
path * | string | The LOP node whose stage to read. |
attr_name | string | attribute: the attribute to read, for example "points". |
count | integer | modified: how many prims come back. |
frames | Read at another frame, or at several: one frame, a list, or {"start": 1, "end": 10, "step": 2}. The playbar goes back after. | |
include_attrs | boolean | prim: also return the attributes of the prim. |
layer_index | integer | layer: which layer of the stack, from 0 (the strongest). |
max_depth | integer | prims: how many levels of the tree come back. |
mode | string | One of "stage", "prims", "prim", "search", "layer", "attribute", "composition", "variants", "stats", "modified", "lights", "transform", "profile". |
pattern | string | search: the prim path to match, with * as a wildcard. |
prim_path | string | prim, attribute, composition, variants, stats, transform: the prim, for example "/world/geo/rock". |
root_prim | string | prims: the prim where the tree starts. |
type_name | string | search: keep the prims of this type, for example "Mesh" or "SphereLight". |