Hi USD experts,
I am meeting an issue to need your support. For attached sublayers.usda, it references another two external “TwoBoxes.usda”, “mesh.usda” in “sub” folders. Now, I try to change folder name on the disk - “sub” into “sub_rename” manually. But sublayers.usda content still keeps unchanged and references external files in “sub” folders. Also, I copied external “TwoBoxes.usda”, “mesh.usda” and put them into the folder that sublayers.usda is located in.
Now if I try to open sublayers.usda in usdviewer, it fails to load sublayer in “sub” folder. Using USD C++ toolkit also fails to get children by calling rootPrim.GetChildren().
My question: Is it still possible to load the external files successfully for such usd model using USD C++ toolkit?
C++ APIs calling:
pxr::UsdStageRefPtr stage = pxr::UsdStage::Open(filename)
pxr::UsdPrim pseudoRootPrim = stage->GetPseudoRoot();
auto rootPrims = pseudoRootPrim.GetChildren();