forked from ColinKennedy/USD-Cookbook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variant_set_auto_selections.usda
56 lines (54 loc) · 1.54 KB
/
variant_set_auto_selections.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
52
53
54
55
56
#usda 1.0
def "Parent" (
variants = {
string parent_variant_set = "parent_selection_1"
}
add variantSets = "parent_variant_set"
) {
variantSet "parent_variant_set" = {
"parent_selection_1" (
"""The purpose of HiddenContainer is to hold a variant selection
that ChildSphere can then pick up and use."""
) {
class "HiddenContainer" (
variants = {
string child_variant_set = "child_selection_1"
}
) {
}
}
"parent_selection_2" {
class "HiddenContainer" (
variants = {
string child_variant_set = "child_selection_2"
}
) {
}
}
"parent_selection_3" {
class "HiddenContainer" (
variants = {
string child_variant_set = "child_selection_3"
}
) {
}
}
}
def Sphere "ChildSphere" (
"""This Prim grabs the variant selection at </Parent/HiddenContainer> and uses it as if it were its own."""
add references = </Parent/HiddenContainer>
add variantSets = "child_variant_set"
) {
variantSet "child_variant_set" = {
"child_selection_1" {
double radius = 1
}
"child_selection_2" {
double radius = 2
}
"child_selection_3" {
double radius = 3
}
}
}
}