An attribute has both a default value and time samples in the same layer. What does a query at a specific frame return?
- Exam domain
- Data Modeling13% of the exam
- Difficulty
- Hard
- In this mock
- 7 questions on this domainPractise this domain
Why the exam asks this
Data Modeling (13% of the exam)
Objective in the exam guide: Prims, properties, primvars, value types, timeSamples and built-in schemas
Value types and timeSamples are named.
Why A is the answer
The time-sampled value, since samples beat the default
When time samples exist in the strongest layer, queries at numeric times use them. The default is returned for default-time queries.
Remember: Samples beat defaults at numeric times.
How it works
Value resolution prefers time samples over defaults for timed queries.
In detail
- Samples win at numeric times.
- Default used at default time.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. The time-sampled value, since samples beat the defaultRight
Samples beat defaults at numeric times.
B. Always the default valueWrongMost tempting
The default is not used at numeric times when samples exist.
Why it tempts: Default sounds like the fallback that always wins.
C. An error, because both cannot existWrong
Both can coexist.
D. The average of the default and the samplesWrong
Values are not averaged.
Use case
An illustrative scenario, not a real incident.
Illustrative: a light has default intensity 500 and samples on frames 1 to 48; frame 10 returns a sample.
See it in different ways
flowchart TD
Q{"Query time?"}
Q -->|"Numeric frame, samples exist"| A0["Time samples"]
Q -->|"Default time"| A1["Default value"]How to read this chart
- At "Query time?": if "Numeric frame, samples exist", go to "Time samples"; if "Default time", go to "Default value".
sequenceDiagram participant P0 as Query participant P1 as UsdAttribute participant P2 as Layer P0->>P1: Get at frame 10 P1->>P2: look up samples P1-->>P0: sampled value
How to read this chart
- 1. Query sends "Get at frame 10" to UsdAttribute.
- 2. UsdAttribute sends "look up samples" to Layer.
- 3. Query gets a reply from UsdAttribute: "sampled value".