Why use a constant primvar on a parent Xform instead of an attribute on each mesh?
- Exam domain
- Data Modeling13% of the exam
- Difficulty
- Medium
- 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
Primvars are named.
Why D is the answer
Constant primvars are inherited by descendant prims
Constant-interpolation primvars inherit down the namespace, so a value on a parent applies to descendants unless they author their own.
Remember: Constant primvars inherit down the hierarchy.
How it works
Constant primvars are inherited by descendants.
In detail
- Constant primvars inherit.
- Children can override.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Primvars load faster than any other dataWrong
Speed is not the main reason.
B. Primvars cannot be overriddenWrong
Primvars can be overridden.
C. Attributes on Xforms are not allowed, so primvars are the only way to store data thereWrongMost tempting
Xforms can hold attributes.
Why it tempts: It sounds like a schema restriction.
D. Constant primvars are inherited by descendant primsRight
Constant primvars inherit down the hierarchy.
Use case
An illustrative scenario, not a real incident.
Illustrative: a car body group sets displayColor once and every panel mesh picks it up.
See it in different ways
sequenceDiagram participant P0 as Parent Xform participant P1 as Mesh A participant P2 as Mesh B P0->>P1: displayColor inherited P0->>P2: displayColor inherited
How to read this chart
- 1. Parent Xform sends "displayColor inherited" to Mesh A.
- 2. Parent Xform sends "displayColor inherited" to Mesh B.
mindmap
root(("Interpolation"))
n1["constant"]
n2["One value for the prim"]
n3["uniform"]
n4["One per face"]
n5["varying and vertex"]
n6["One per point"]
n7["faceVarying"]
n8["One per face corner"]How to read this chart
- The centre is "Interpolation".
- "constant" covers "One value for the prim".
- "uniform" covers "One per face".
- "varying and vertex" covers "One per point".
- "faceVarying" covers "One per face corner".