An attribute's value seems to come from nowhere. Which API tells you whether it came from time samples, a default or a schema fallback?
- Exam domain
- Debugging and Troubleshooting11% of the exam
- Difficulty
- Hard
- In this mock
- 5 questions on this domainPractise this domain
Why the exam asks this
Debugging and Troubleshooting (11% of the exam)
Objective in the exam guide: Introspect USD stages to fix unexpected or undesired composition results
Introspecting unexpected results is named.
Why C is the answer
attr.GetResolveInfo() and its source
UsdResolveInfo reports the value source, such as default, time samples, value clips or fallback, and the layer where it was found.
Remember: GetResolveInfo shows the value source.
How it works
UsdResolveInfo explains where a value came from.
In detail
- Resolve info shows the source.
- Fallback means no authored opinion.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. prim.GetChildren()Wrong
Children are unrelated.
B. stage.GetLayerStack(), which lists every layer that was opened with the stageWrongMost tempting
The layer stack lists layers, not the source of one value.
Why it tempts: The layer stack sounds like an answer about sources.
C. attr.GetResolveInfo() and its sourceRight
GetResolveInfo shows the value source.
D. attr.GetName()Wrong
Names do not show sources.
Use case
An illustrative scenario, not a real incident.
Illustrative: a light intensity reads 1.0; resolve info shows the schema fallback because nothing was authored.
See it in different ways
flowchart TD
Q{"Resolve info source"}
Q -->|"Default"| A0["Authored default"]
Q -->|"Time samples"| A1["Authored samples"]
Q -->|"Fallback"| A2["Schema fallback, nothing authored"]How to read this chart
- At "Resolve info source": if "Default", go to "Authored default"; if "Time samples", go to "Authored samples"; if "Fallback", go to "Schema fallback, nothing authored".
sequenceDiagram participant P0 as Developer participant P1 as UsdAttribute P0->>P1: GetResolveInfo P1-->>P0: source and layer
How to read this chart
- 1. Developer sends "GetResolveInfo" to UsdAttribute.
- 2. Developer gets a reply from UsdAttribute: "source and layer".