An attribute shows an unexpected value. Which API tells you which layers hold opinions for it, strongest first?
- Exam domain
- Composition23% of the exam
- Difficulty
- Hard
- In this mock
- 11 questions on this domainPractise this domain
Why the exam asks this
Objective in the exam guide: Debug complex LIVERPS scenarios
Debugging composition results is named.
Why A is the answer
attr.GetPropertyStack()
GetPropertyStack returns the property specs that contribute to the value, ordered strongest to weakest, which shows where the winning opinion lives.
Remember: GetPropertyStack shows contributing specs.
How it works
Stack queries reveal which layers contribute opinions.
In detail
- Property stack: strongest first.
- Prim stack does the same for prims.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. attr.GetPropertyStack()Right
GetPropertyStack shows contributing specs.
B. attr.GetTypeName()Wrong
Type name says nothing about sources.
C. stage.GetRootLayer().ExportToString()WrongMost tempting
The root layer alone misses composed layers.
Why it tempts: Exporting the root layer misses opinions from other layers.
D. attr.GetNumTimeSamples()Wrong
Sample count does not show sources.
Use case
An illustrative scenario, not a real incident.
Illustrative: the stack shows a lighting layer overriding the colour that layout authored.
See it in different ways
flowchart LR S0["Get attribute"] --> S1["GetPropertyStack"] --> S2["Read first spec layer"] --> S3["Fix there"]
How to read this chart
- Read it in order: Get attribute, then GetPropertyStack, then Read first spec layer, then Fix there.
sequenceDiagram participant P0 as Developer participant P1 as UsdAttribute participant P2 as Layers P0->>P1: GetPropertyStack P1->>P2: collect specs P1-->>P0: strongest first
How to read this chart
- 1. Developer sends "GetPropertyStack" to UsdAttribute.
- 2. UsdAttribute sends "collect specs" to Layers.
- 3. Developer gets a reply from UsdAttribute: "strongest first".