Luce packages
LuceLuce BaseLuciaOS

dymokomi/luce-usd

Source of release 0.9.4

0.9.4 / tests / fixtures / openusd / museum / TrickyInheritsAndRelocates / flattened.usda

#usda 1.0
(
    """
    This museum case exhibits the behavior of inherits in relocated prims. 
    In particular, it shows that opinions at relocation sources will not
    be inherited. This is a consequence of the \"salted earth\" relocation
    policy.

    These cases with inherits and relocates are a little tricky because they
    indirectly pull on prims at a relocation source. If we were to directly 
    compose the prims at the relocation source, we would receive composition 
    errors -- this is verified by ErrorOpinionAtRelocationSource.

    There are two examples here. In the first, a model in a character group 
    is renamed via relocations. The model itself has some scope that inherits 
    a class hierarchy. Overs on this class hierarchy that are (erroneously) 
    authored at the relocation source in the referencing layer stack
    should be ignored. In the second, a scope attempts to inherit from a
    scope relocated from a referenced rig. It shouldn't be able to inherit
    from the scope at the rig's original location.
    """
)

def Scope "Group"
{
    def Model "Model_Renamed"
    {
        class Scope "A"
        {
            custom string a_target = "good"
        }

        class Scope "B"
        {
            custom string a_target = "good"
            custom string b_target = "good"
        }

        def Scope "Scope"
        {
            custom string a_target = "good"
            custom string b_target = "good"
        }
    }
}

def Scope "Rig"
{
    def Scope "Anim"
    {
        class Scope "RigClass"
        {
            custom string r_target = "good"
        }

        def Scope "RigInstance"
        {
            custom string r_target = "good"
        }

        def Scope "BadRigInstance"
        {
        }
    }
}