all  /  test_assets  / foundation  / stage_configuration  / multiple_root_prims  / multiple_root_prims_with_defaultPrim .usda

Multiple Root Prims

These files show how stages with multiple root prims behave.

No defaultPrim

multiple_root_prims_no_defaultPrim.usda has two root prims and no defaultPrim set.

screenshot multiple_root_prims_no_defaultPrim.usda, usdrecord 22.08

With defaultPrim

multiple_root_prims_with_defaultPrim.usda has two root prims and one of them is set as defaultPrim.

screenshot multiple_root_prims_no_defaultPrim.usda, usdrecord 22.08


Edit this page

multiple_root_prims_with_defaultPrim.usda

#usda 1.0
(
    customLayerData = {
        string copyright = "Copyright 2022 Apple Inc. All rights reserved."
    }
    defaultPrim = "Sphere"
    upAxis = "Y"
    metersPerUnit = 0.01
)

def Cube "Cube"
{
    float3[] extent = [(-1, -1, -1), (1, 1, 1)]
    double size = 2
}

def Sphere "Sphere"
{
    float3[] extent = [(-1, -1, -1), (1, 1, 1)]
    double radius = 1
    double3 xformOp:translate = (2, 0, 0)
    uniform token[] xformOpOrder = ["xformOp:translate"]
}