Houdini MCP

v0.8.1
io.github.JTCHE/houdini-mcp Checked 8 hours ago Published 1 month ago

Connect 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…

ParameterTypeDescription
operations *arrayThe 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…

ParameterTypeDescription
azimuthnumberDegrees around the up axis, around what the view frames. 0 looks from the front. Nothing is added to the scene.
azimuthsarraysheet: a list of angles; each frame is drawn from each angle.
backgroundintegersheet and movie: the grey of the background, 0-255. Smoke reads best on mid grey.
boundsarraysheet: [xmin, ymin, zmin, xmax, ymax, zmax], the box to frame.
camerastringcamera mode: the camera node to look through. On a LOP network with `renderer`, a USD camera prim.
color_bystringsheet 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_rangearray[low, high] for color_by. Without it, [0, 1].
columnsintegersheet: tiles in each row.
contournumbersheet: 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.
countintegersheet: how many tiles, when frames is not given.
directionstringThe view axis: "top", "front", "left", "right", "back", "bottom" or "persp".
elevationnumberDegrees above the ground, with azimuth. 30 with azimuth 45 is a three-quarter view.
fillnumberHow much of the picture the framed thing takes: 0.9 leaves air around it, 1.0 fills it.
fpsnumbermovie: frames per second.
framestringWhat to frame the view on: "selection", "all", or a node path (the box of what that node cooked).
frame_rangearrayflipbook and movie: [start, end].
framesOne 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_fromarray[x, y, z]: the point that the view looks from.
modestringOne of "viewport", "quad", "camera", "flipbook", "sheet", "movie", "network".
nodestringThe 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.
outputstringThe file to write. Without it, a temporary file.
pathsarraynetwork: the items to frame in the network editor.
radiusnumberThe distance between target and look_from.
referencestringsheet: a picture file to put in the first tile, to compare.
rendererstringThe Hydra renderer of a viewer on a LOP network, for example "Karma CPU". An unknown name lists the ones available.
resolutionarray[width, height] in pixels. The height follows the shape of the viewport, so the picture is not stretched.
settlenumberSeconds 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…
shadingstringOne of "smooth", "smooth_wire", "flat", "wireframe".
slabarray[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.
startnumbersheet: the first frame. Without it, the current frame.
stepnumbersheet: the frames between tiles. Over 2 hides movement and gives a warning.
targetarray[x, y, z]: the point that the view turns around.
tile_widthintegersheet: the width of each tile in pixels.
vectorsnumbersheet: 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…

ParameterTypeDescription
dst_input_indexintegerconnect: the input of dst_path, from 0.
dst_pathstringconnect: the node or network dot whose input takes the wire.
input_indexintegerdisconnect: the input that loses its wire, from 0.
input_indicesarrayreorder: the old input indices in their new order, for example [1, 0].
itemsA 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…
modestringOne of "connect", "disconnect", "reorder".
pathstringdisconnect and reorder: the node whose inputs change.
src_output_indexintegerconnect: the output of src_path, from 0.
src_pathstringconnect: 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.

ParameterTypeDescription
limitintegerHow many log entries come back, the newest ones.
node_errorsbooleanAlso report the nodes under root_path that hold an error or a warning. False gives the log alone.
node_limitintegerHow many nodes with an error or a warning come back. Errors come first, and the report says how many it left out.
root_pathstringThe network that node_errors walks, for example /obj or /stage.
severitystringKeep one level only: "message", "important", "warning", "error" or "fatal".
sourcestringKeep 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…

ParameterTypeDescription
paths *The node to cook, or a list of nodes.
forcebooleanCook even when Houdini thinks the node is up to date.
frame_rangearray[start, end]: every frame between. For cook and cache_write.
framesOne frame, a list of frames, or {"start": 1001, "end": 1010, "step": 2}. For cook. The playbar goes back after.
modestringOne of "cook", "cache_write", "cache_clear", "sim_step", "sim_reset", "recook". The description says what each one does.
num_stepsintegerHow many frames sim_step steps the DOP network.
parametersobjectValues 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…

ParameterTypeDescription
buildstringThe 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.
categorystringquery: 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".
limitintegerquery: how many hits come back.
nodestringA 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.
pagestringA page path from a hit, for example "nodes/sop/copytopoints". A loose name or a sidefx.com address also works.
partintegerA long page comes in parts of about 20,000 characters: 2, 3 and so on read the next ones.
querystringWords to search, for example "copy to points". Returns the hits with their page paths.
sectionstringRead 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…

ParameterTypeDescription
argsarrayfile: the values of sys.argv[1:].
backgroundbooleanpython: return at once with a job id and let the script run. Read it with mode job. Until it ends, other calls are refused.
filestringA 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.
globalsobjectNames that exist before the script runs, for example {"radius": 2.0}.
jobstringjob: the job id that background returned.
languagestringexpression: "hscript" or "python".
modestringOne of "python", "hscript", "expression", "vex_check", "env", "job".
namestringenv: the Houdini variable to read, for example "HIP".
sourcestringThe code: Python, HScript, an expression or VEX, as mode says.
timeoutnumberThe seconds the script may run. Past it, the script stops where it is, the answer says where, and what it changed stays.
waitnumberjob: 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…

ParameterTypeDescription
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.
againststringcompare: 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_classstringattrib, try: "point", "prim", "vertex" or "detail".
attrib_namestringattrib, try: the attribute to read. try reads it on the result.
attribsarraypoints: the attributes to return, for example ["P", "Cd"]. changes: the attributes whose mean, min and max to follow.
binsvolume_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].
countintegerpoints, prims: how many elements. Keep it small: a large read is slow.
filestringexport: the file path to write.
formatstringexport: the file type, for example "obj" or "bgeo".
framesRead at other frames, without moving the playbar: one frame, a list, or {"start": 1001, "end": 1010, "step": 2}. One answer for each frame.
from_nodestringvolume_sample: read at the points of this node. volume_compare: the node that holds `against`, such as a collider SDF.
group_namestringgroup_members: the group to read.
group_typestringgroups, group_members: "point", "prim", "vertex" or "edge".
limitintegerattrib: 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_attribstringcompare: the attribute that pairs the points of the two nodes, not their order.
modestringOne of "summary", "points", "prims", "attrib", "groups", "group_members", "bbox", "intrinsics", "nearest", "skeleton", "compare", "try", "volume_stats", "volume_voxels", "volume_sample", "volume_compa…
namestringvolume_stats: one volume to read. volume_voxels, volume_compare: the field. fingerprint: save the result under this name.
namesarrayvolume_sample: the fields to read.
outputThe 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.
patternstringskeleton: keep the joints whose name matches.
plane_namestringimage: the COP plane to read, for example "C".
positionarraynearest: [x, y, z].
positionsarrayvolume_sample: the [x, y, z] points to read at.
prim_indexintegerintrinsics: the primitive to read.
reducestringvolume_voxels: one answer instead of the array: "sum", "mean", "max", "min", "project_x", "project_y" or "project_z".
renamedobjectfingerprint: {"old path": "new path"} for the nodes that a refactor renamed or moved.
split_bystringcrossings: a prim attribute, such as "name", whose values are the parts that the count pairs.
startintegerpoints, prims, attrib: the first element. Page with it.
stepsarraytry: a list of {"node_type": ..., "parameters": {...}} to run on the geometry. A menu takes its token or its index. Nothing changes in the scene.
thresholdnumbervolume_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…
uniquebooleanattrib: 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…

ParameterTypeDescription
categorystringlist: keep one node category, for example "Sop".
contentstringsection_set: the text to write into the section.
file_pathstringinstall, uninstall, reload: the .hda file. create: the file to write.
labelstringcreate: the name that the TAB menu shows.
modestringOne of "list", "get", "install", "uninstall", "reload", "update", "create", "sections", "section_get", "section_set".
namestringcreate: the type name of the new asset.
node_pathstringupdate: the node to save into its asset. create: the subnet to make an asset from.
node_typestringget, 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_namestringsection_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…

ParameterTypeDescription
bypassbooleanflags: the bypass flag.
codestringwrangle: the VEX snippet.
code_filestringwrangle: read the VEX from this file, so a long snippet travels once.
colorarraycolor, note, box: [r, g, b] from 0 to 1.
contextstringcreate: the network kind, "sop" (default), "cop", "chop", "lop" or "material_network".
destination_pathstringcopy, move: the network to put the nodes in.
displaybooleanflags: the display flag.
forcebooleandelete: delete a node that still feeds a node that stays.
input_indexintegerplace_chain: the input of reader that the chain feeds.
input_pathstringcreate: 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.
itemsA 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_pathstringassign_material: the material node.
material_typestringmaterial: the shader type, for example "principledshader".
modestringOne of "create", "delete", "copy", "move", "rename", "flags", "color", "layout", "insert", "place_chain", "wrangle", "material", "assign_material", "take", "current_network", "note", "box", "split".
namestringcreate, material: the name of the new node. take: the name of a new take.
namesobjectcopy: a new name for each source, by source path or name.
new_namestringrename: the new name.
node_typestringcreate: the node type, for example "box" or "attribwrangle".
parametersobjectcreate, material: values to set on the new node, by parameter name.
parent_pathstringcreate, wrangle, note: the network that gets the new node.
pathstringThe node to change. layout: the network. delete: a node, a sticky note or a network box.
pathsarraycopy: 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.
positionarraycreate, move, note: [x, y] on the canvas.
readerstringinsert: only the wires into this node. place_chain: the node that the chain feeds.
renderbooleanflags: the render flag, which is not the display flag.
replacearraywrangle: edit the snippet in place, a list of {"old": ..., "new": ...}. Each old must appear exactly once.
stagesobjectsplit: {"stage name": ["node", ...]}, the nodes of `path` for each subnet.
suffixstringcopy: text added to the name of each copy.
take_namestringtake: the take to make current.
textstringnote: 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…

ParameterTypeDescription
paths *One node path, or a list. A list keeps going after a node that fails, and each result names its path.
channelstringchannels: the CHOP channel whose samples to read.
endnumberchannels: the last sample frame.
field_namestringsimulation: the field of object_name to read.
fieldsarrayparms, changed: keep only these keys of each parameter, for example ["value", "expression"]. The name is always kept.
framesRead 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_expressionbooleanparms: keep only the parameters that carry an expression.
include_all_parmsbooleaninfo: list every parameter, not only the ones that changed.
modestringOne of "info", "parms", "schema", "changed", "names", "expression", "keyframes", "code", "cook_chain", "explain", "material", "image", "channels", "simulation", "render_settings", "cache", "time_depen…
object_namestringsimulation: the DOP object to read.
parmstringparms, expression, keyframes, readers: the parameter name.
patternstringparms, changed: keep the parameters whose name or label holds this text or matches it as a glob. "|" separates alternatives: "time|step|cfl".
startnumberchannels: 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…

ParameterTypeDescription
channel_namestringchop_export: the channel that drives the parameter.
chop_pathstringchop_export: the CHOP node.
defaultspare: the default of one control.
expressionstringexpression: the expression text.
follow_referencebooleanWrite the node at the other end of a channel reference. Without it, a write through a reference is refused.
framenumberkeyframe, delete_keyframe: the frame of the key.
itemsA list of writes, each a dictionary with the keys of one call. An argument outside items is the default for each one.
keyframesarraykeyframes: a list of {frame, value}.
labelstringspare: the label of one control.
languagestringexpression: "hscript" or "python".
lockedbooleanlock: true locks the parameter, false unlocks it.
modestringOne of "value", "press", "expression", "keyframe", "keyframes", "delete_keyframe", "revert", "lock", "link", "spare", "render_settings", "chop_export", "snapshot", "restore", "diff".
namestringspare: the name of one control. snapshot, restore, diff: the record on disk.
parametersvalue: several names and values in one write, as a dictionary. spare: the list of controls to add.
parmstringThe parameter name, for example "tx" or "divsize".
parm_typestringspare: the type of one control, for example "float" or "toggle".
pathstringThe node that holds the parameter.
pathsarraysnapshot: the nodes to save; "/obj/geo1/*" names every node in a network. restore: put back only these nodes.
settingsobjectrender_settings: the ROP parameters to write, by name.
src_parmstringlink: the parameter to follow.
src_pathstringlink: the node to follow.
valuevalue, 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. "…

ParameterTypeDescription
path *stringThe TOP network or the TOP node.
dirty_allbooleandirty: also remove the outputs of the node on disk.
modestringOne of "status", "workitems", "cook", "dirty", "cancel".
statestringworkitems: 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…

ParameterTypeDescription
actionstringplay: "play", "stop", "next", "previous", "start" or "end".
endnumberrange and playback: the last frame.
framenumberframe: the frame to go to.
modestringOne of "get", "frame", "range", "playback", "play".
startnumberrange 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…

ParameterTypeDescription
backgroundbooleanstart: render the saved .hip file in a separate hython, so Houdini stays free. The scene must have no unsaved changes.
frame_rangearraystart: [start, end] or [start, end, step]. Without it the ROP renders its own range.
modestringOne of "start", "progress", "settings", "create", "watch", "stats", "compare".
namestringcreate: the name of the new ROP.
output_pathstringstart: the image file for this render only (put $F4 in it for a range). watch, stats, compare: the image file.
parent_pathstringcreate: the network that gets the ROP.
pathstringstart, progress, settings: the ROP node.
referencestringcompare: the image to compare `output_path` with.
render_typestringcreate: the ROP kind, for example "opengl", "karma", "mantra" or "ifd".
res_scalenumberstart: a fraction of the resolution for this render only, 0.5 is half.
waitbooleanstart: 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…

ParameterTypeDescription
countintegerundo and redo: how many steps.
modestringOne of "info", "save", "load", "undo", "redo", "merge", "list_file".
nodesarraymerge: the node paths to bring from the other file. list_file: the networks to list.
pathstringsave: 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…

ParameterTypeDescription
categorystringnode_types: the context, for example "Sop", "Object", "Lop" or "Driver".
compactbooleannetwork: return only the wires, one line each.
modestringOne of "scene", "network", "children", "search", "node_types", "errors", "materials", "lights", "takes", "caches", "render_nodes", "viewports", "changes".
node_typestringsearch, network: keep the nodes of this type, for example "null".
pathstringA node path such as "/obj" or "/obj/geo1": the network to list or to search.
patternstringsearch: the name to match, with * and ? as wildcards. network, node_types: keep the names that match; "|" separates alternatives, for example "*retarget*|*ik*".
recursivebooleanchildren: 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.

ParameterTypeDescription
pathsLeave 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…

ParameterTypeDescription
actionstringOne of "status", "list", "attach", "detach", "interrupt", "start", "start_gui", "stop".
hipstringstart_gui: the .hip file to open.
portintegerattach: the port of the Houdini to talk to, from list. interrupt: the Houdini to interrupt, when not the attached one.
versionstringstart 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…

ParameterTypeDescription
path *stringThe LOP node whose stage to read.
attr_namestringattribute: the attribute to read, for example "points".
countintegermodified: how many prims come back.
framesRead at another frame, or at several: one frame, a list, or {"start": 1, "end": 10, "step": 2}. The playbar goes back after.
include_attrsbooleanprim: also return the attributes of the prim.
layer_indexintegerlayer: which layer of the stack, from 0 (the strongest).
max_depthintegerprims: how many levels of the tree come back.
modestringOne of "stage", "prims", "prim", "search", "layer", "attribute", "composition", "variants", "stats", "modified", "lights", "transform", "profile".
patternstringsearch: the prim path to match, with * as a wildcard.
prim_pathstringprim, attribute, composition, variants, stats, transform: the prim, for example "/world/geo/rock".
root_primstringprims: the prim where the tree starts.
type_namestringsearch: keep the prims of this type, for example "Mesh" or "SphereLight".