These assets show and test how compositon arcs and related concepts work.
payload contains assets to test payloading files and prims.
reference contains assets to test referencing files and prims.
subLayer contains assets to test sublayering files.
active.usda shows an example of the active
prim metadata. One inactive (active = false
), red cube and one active (active = true
), green cube exist in the stage.
active.usda, usdrecord 22.08
class_inherit.usda shows how to use a class
and what effect overriding a class attribute has in an inheriting prim.
class_inherit.usda, usdrecord 22.08
inherit_and_specialize.usda shows the difference between inherits
and specializes
.
inherit_and_specialize.usda, usdrecord 22.08
over.usda shows the difference between over
s and def
s.
over.usda, usdrecord 22.08
purpose.usda shows an example of the purpose
prim attribute. There are four cubes with different purpose
tokens set:
CubeIsGuide
with token purpose = "guide"
, colored redCubeIsRender
with token purpose = "render"
, colored greenCubeIsProxy
with token purpose = "proxy"
, colored blueCubeIsOther
with token purpose = "other"
, colored yellowpurpose.usda, usdrecord 22.08
#usda 1.0
(
customLayerData = {
string copyright = "Copyright 2022 Apple Inc. All rights reserved."
}
defaultPrim = "World"
upAxis = "Y"
metersPerUnit = 0.01
)
def Scope "World"
{
def Xform "cubeScene"
{
def Cube "source"
{
color3f[] primvars:displayColor = [(0.8, 0, 0)]
}
def Cube "specializes" (
specializes = </World/cubeScene/source>
)
{
color3f[] primvars:displayColor = [(0.8, 0.8, 0)]
double3 xformOp:translate = (3, 0, 0)
uniform token[] xformOpOrder = ["xformOp:translate"]
}
def Cube "inherits" (
inherits = </World/cubeScene/source>
)
{
color3f[] primvars:displayColor = [(0.8, 0.8, 0)]
double3 xformOp:translate = (6, 0, 0)
uniform token[] xformOpOrder = ["xformOp:translate"]
}
}
def Xform "cubeSceneReferenced" (
references = </World/cubeScene>
)
{
double3 xformOp:translate = (0, 3, 0)
uniform token[] xformOpOrder = ["xformOp:translate"]
def "source"
{
color3f[] primvars:displayColor = [(0, 0.8, 0)]
}
}
}