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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#usda 1.0
(
"A doc comment in the layer header"
defaultPrim = "Root"
metersPerUnit = 0.01
upAxis = "Y"
documentation = """
A triple-quoted
multi-line string.
"""
colorConfiguration = @config.ocio@
colorManagementSystem = "ocio"
customLayerData = {
string author = "someone"
int version = 3
double[] numbers = [1, 2, 3]
}
framesPerSecond = 24
timeCodesPerSecond = 24
startTimeCode = 0
endTimeCode = 10
subLayers = [
@sub.usda@ (offset = 5; scale = 2)
]
)
over "Sparse"
{
}
class "Template"
{
double x = 1
}
def Scope "Root" (
kind = "component"
active = true
hidden = false
instanceable = false
"a prim doc comment"
customData = {
string note = "kept"
dictionary nested = {
token deep = "yes"
}
}
displayName = "Root Node"
prepend apiSchemas = ["MaterialBindingAPI"]
prepend inherits = </Template>
add references = @other.usda@</Thing>
delete references = @gone.usda@
prepend variantSets = "style"
variants = {
string style = "plain"
}
)
{
reorder nameChildren = ["B", "A"]
custom double customAttr = 5
uniform token uniformAttr = "u"
double defaulted = 1 (
doc = "an attribute doc"
displayGroup = "Group"
displayName = "Nice Name"
hidden = true
customData = {
string k = "v"
}
)
double noValue
custom rel customRel
prepend rel listRel = [</Root/A>]
append rel listRel2 = [</Root/B>]
delete rel listRel3 = [</Root/A>]
reorder rel listRel4 = [</Root/B>]
def "Typeless"
{
}
def Scope "A"
{
}
def Scope "B"
{
}
variantSet "style" = {
"plain" (
"a variant doc"
) {
double inVariant = 1
def Scope "OnlyInPlain"
{
}
}
"fancy" {
double inVariant = 2
}
}
}