get_usd_attributes
Read attributes from multiple USD prims in one table to avoid per-prim queries. Returns rows for each prim and attribute, including relationships, at a specified time.
Instructions
Read the same attributes across many prims as one table.
One row per prim and attribute: {prim, prim_type, name, type, value,
time_samples?} or, for a relationship, {prim, prim_type, name,
relationship: true, targets}. The call for "sourceName of every
RenderVar", "lpetag of every light", "the camera of the render
settings" -- instead of one get_usd_prim per prim. matched counts every
row found; truncated says the limit cut some off.
Args:
node_path: LOP node path.
prims: Prim paths or globs: * stays within one path element,
** crosses them (["/Render/Vars/*"], ["/lights/**"]).
attr_patterns: Glob patterns on attribute and relationship names
(["sourceName"], ["*lpetag"]); default all.
prim_type: Keep only prims of this type (glob, e.g. "*Light").
relationships: Include relationships as rows.
time: Time code (frame) to read at; default the current frame.
full: Return array values in full instead of summarised.
traverse_instance_proxies: Let globs match prims inside instances.
limit: Row cap.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| full | No | ||
| time | No | ||
| limit | No | ||
| prims | Yes | ||
| node_path | Yes | ||
| prim_type | No | ||
| attr_patterns | No | ||
| relationships | No | ||
| traverse_instance_proxies | No |