forked from ColinKennedy/USD-Cookbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase.usda
52 lines (44 loc) · 1.16 KB
/
base.usda
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#usda 1.0
(
"A Layer that demonstrates why `specializes` can be used as a fallback-Prim mechanism. The reason it works is because it's the weakest composition arc."
)
class "SomeClassWithRadius"
{
double radius = 4
}
class "FallbackClassWithRadius"
{
double radius = 5
}
def Sphere "MySphere1" (
"This Prim will have a radius of 4 because `references` is preferred over `specializes`."
references = </SomeClassWithRadius>
specializes = </FallbackClassWithRadius>
)
{
}
def Sphere "MySphere2" (
"This Prim will have a radius of 10 because `payload` is preferred over `specializes`."
payload = @./payload.usda@</MySphere>
specializes = </FallbackClassWithRadius>
)
{
}
def Sphere "MySphere3" (
"This Prim will have a radius of 4 because `references` is preferred over `payload`."
payload = @./payload.usda@</MySphere>
references = </SomeClassWithRadius>
)
{
}
def Sphere "MySphere4" (
"This Prim will have a radius of 5 because `specializes` authors a value for it."
specializes = </FallbackClassWithRadius>
)
{
}
def Sphere "MySphere5" (
"This Prim will have a radius of 1 because that is the fallback value for `Sphere`."
)
{
}