get_usd_attribute
Read a USD attribute value from a prim, with support for long array slicing and time-sampled attributes using the current frame when no time is given.
Instructions
Read a USD attribute value from a prim.
A long array (over 16 elements) answers with value as a summary (size,
element_type, head, min/max) plus slice: the elements from offset,
at most limit of them (default the first 64), with has_more. Walk a
big array by raising offset; pass full=True to get every element in
value at once.
A time-sampled attribute (a PointInstancer's positions, protoIndices)
has nothing in its default slot: read with no time it answers null. With
no time given, the current frame is read instead, and the reply carries
time, time_source, time_samples and time_range, so value: null
never stands unexplained next to is_authored: true.
Args:
node_path: LOP node path.
prim_path: USD prim path.
attr_name: Attribute name.
time: Time code (frame number). Omitted on a time-sampled attribute,
the current frame is used (the first sample outside the range).
full: Return the whole array as value.
offset: First element of the window for a long array.
limit: Window size for a long array.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| full | No | ||
| time | No | ||
| limit | No | ||
| offset | No | ||
| attr_name | Yes | ||
| node_path | Yes | ||
| prim_path | Yes |