d6730eeff4faea95565a68c214fddbd1c63c9b46
[platform/core/uifw/OpenUSD.git] /
1 #sdf 1.4.32
2 (
3     """
4     This example exercises a case with two sibling variant sets,
5     where a fallback applied to one introduces an authored selection
6     for the other.  Since they are on the same node/site this
7     requires restarting the variant evaluation process.
8     """
9 )
10
11 def Scope "A" (
12     add variantSets = ["vset1", "vset2"]
13 )
14 {
15     variantSet "vset1" = {
16         "fallback" (
17             variants = {
18                 string vset2 = "authored"
19             }
20         ) {
21         }
22     }
23     variantSet "vset2" = {
24         "authored" (
25         ) {
26             def Scope "vset2_authored_child"
27             {
28             }
29         }
30     }
31 }
32
33 def Scope "B" (
34     add variantSets = ["vset2", "vset1"]
35 )
36 {
37     variantSet "vset1" = {
38         "fallback" (
39             variants = {
40                 string vset2 = "authored"
41             }
42         ) {
43         }
44     }
45     variantSet "vset2" = {
46         "authored" (
47         ) {
48             def Scope "vset2_authored_child"
49             {
50             }
51         }
52     }
53 }