OpenUSD
OpenUSD copied to clipboard
Composition issue when specifying an invalid defaultPrim
Unzip the attached empty.usda and prims.usda: defaultPrimIssue.zip
- Open
usdview empty.usda - In the interpreter window, run:
s = usdviewApi.stage
l = s.GetRootLayer()
with Sdf.ChangeBlock():
l.subLayerPaths = ["prims.usda"]
l.defaultPrim = "1234"
- The stage will have no prims on it still. If the above process is followed again, but with the last line of the script changed to
l.defaultPrim = "_1234"(i.e. a valid, but non-existent prim name), the stage gets populated as expected.