OpenUSD icon indicating copy to clipboard operation
OpenUSD copied to clipboard

Composition issue when specifying an invalid defaultPrim

Open marktucker opened this issue 4 months ago • 1 comments

Unzip the attached empty.usda and prims.usda: defaultPrimIssue.zip

  1. Open usdview empty.usda
  2. In the interpreter window, run:
s = usdviewApi.stage
l = s.GetRootLayer()
with Sdf.ChangeBlock():
 l.subLayerPaths = ["prims.usda"]
 l.defaultPrim = "1234"
  1. 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.

marktucker avatar Oct 22 '25 20:10 marktucker

Filed as internal issue #USD-11579

(This is an automated message. See here for more information.)

jesschimein avatar Oct 23 '25 21:10 jesschimein