stage_inspect
Inspect and debug a cooked USD stage at a Solaris LOP node: view prims, layers, composition, variants, lights, transforms, stats, and slow node profiles. Returns JSON, not for SOP geometry.
Instructions
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
attributes.
"search" — prims whose path matches `pattern`, filtered by
`type_name` such as "Mesh" or "SphereLight".
"layer" — the layer stack, and the layer at `layer_index`.
"attribute" — the value of `attr_name` on `prim_path`.
"composition" — where the opinions on `prim_path` come from: each
layer of its prim stack, strongest first, with the
node that wrote it (the SOP behind an op: layer) and
its references and payloads.
"variants" — the variant sets on `prim_path` and the selection.
"stats" — counts under `prim_path`.
"modified" — the last `count` prims that this node changed. Use it
to see what one LOP did.
"lights" — the lights on the stage.
"transform" — where `prim_path` is in the world: translate, rotate
and scale composed through every parent. With
`frames`, the path of a moving prim.
"profile" — each LOP node of the chain up to `path`: cook time,
prims by type, and the prims it adds, slowest
first. It names the node that makes an export or a
render start slow, and flags a SOP Import that
writes each packed piece as its own Xform.
A layer file that another process wrote again (a cache from hython) is
reloaded before the read, and `reloaded_layers` names it.
Returns JSON.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | One of "stage", "prims", "prim", "search", "layer", "attribute", "composition", "variants", "stats", "modified", "lights", "transform", "profile". | stage |
| path | Yes | The LOP node whose stage to read. | |
| count | No | modified: how many prims come back. | |
| frames | No | Read at another frame, or at several: one frame, a list, or {"start": 1, "end": 10, "step": 2}. The playbar goes back after. | |
| pattern | No | search: the prim path to match, with * as a wildcard. | |
| attr_name | No | attribute: the attribute to read, for example "points". | |
| max_depth | No | prims: how many levels of the tree come back. | |
| prim_path | No | prim, attribute, composition, variants, stats, transform: the prim, for example "/world/geo/rock". | |
| root_prim | No | prims: the prim where the tree starts. | / |
| type_name | No | search: keep the prims of this type, for example "Mesh" or "SphereLight". | |
| layer_index | No | layer: which layer of the stack, from 0 (the strongest). | |
| include_attrs | No | prim: also return the attributes of the prim. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |