An OpenUSD asset can open correctly on its own and still show the wrong assembly when referenced into a robot workcell. A reviewer might see the tool geometry and its checking fixture in the asset viewer, while the composed cell shows only the fixture. The file can contain both assemblies. The question is which subtree the consumer asked to bring into the cell.
An OpenUSD reference can supply an asset path and a target prim path. When the target prim path is omitted, the reference uses the referenced layer's defaultPrim metadata. That makes an asset convenient to reuse, but it also means that changing the default can change the contents of scenes that reference the asset implicitly. Adding unrelated root prims does not select a new default by itself.
Check the authored default and the composed result
The following fixture creates two independent roots. Tool has a child named Body, and Fixture has a child named Marker. The names distinguish two subtrees without needing a mesh, payload, robot model, or render. The code uses an anonymous layer so it can run locally without writing an asset file. For an asset intended for distribution, use a file-backed reference and confirm that it resolves from the consuming scene.
from pxr import Usd
asset = Usd.Stage.CreateInMemory()
tool = asset.DefinePrim("/Tool", "Xform")
asset.DefinePrim("/Tool/Body", "Cube")
fixture = asset.DefinePrim("/Fixture", "Xform")
asset.DefinePrim("/Fixture/Marker", "Sphere")
def check_references(default):
asset.SetDefaultPrim(default)
layer_id = asset.GetRootLayer().identifier
assert asset.GetDefaultPrim().GetPath() == default.GetPath()
cell = Usd.Stage.CreateInMemory()
cell.DefinePrim("/Cell", "Xform")
implicit = cell.DefinePrim("/Cell/Implicit", "Xform")
explicit = cell.DefinePrim("/Cell/Explicit", "Xform")
assert implicit.GetReferences().AddReference(layer_id)
assert explicit.GetReferences().AddReference(layer_id, "/Tool")
def children(path):
prim = cell.GetPrimAtPath(path)
return sorted(child.GetName() for child in prim.GetChildren())
return children("/Cell/Implicit"), children("/Cell/Explicit")
assert check_references(tool) == (["Body"], ["Body"])
assert check_references(fixture) == (["Marker"], ["Body"])
The first pass points the default to Tool. Both references bring in Body. The second pass points the default to Fixture and creates a fresh scene. The implicit reference now brings in Marker, while the explicit reference still brings in Body. The consumer names Implicit and Explicit stay the same in both passes. Seeing those parent names in an outliner therefore does not establish that the intended geometry is present below them.
Choose an entry point for each use
Use an implicit reference when the publisher intends a stable default entry point for general reuse. Record the expected default in the asset contract and validate it in the root layer to be delivered. The stage API reads that root layer's default metadata, so successfully navigating to another prim in the standalone view does not change which subtree an implicit reference selects.
Use an explicit prim path when a scene intentionally consumes a particular subtree. That path becomes part of the reference contract. If a later release renames or moves the target prim, verify and update the path deliberately. Keep unrelated authoring helpers outside the expected export branch when they have no role in the consuming scene. This makes it easier to audit the published hierarchy and keeps the scene composition check focused on the expected descendants.
Validate assets from the consumer's side
When checking a packaged workcell asset, open the asset directly and inspect the default prim path. Then load a small consuming scene that uses the same reference form as production. Check a known child prim, its type, and any property the reviewing tool relies on. If variants or payload loading can affect that property, use the same selections and load settings in the fixture.
After changing an asset entry point, repeat both checks using the published files and their usual relative paths. An implicit reference may bring in a different valid subtree and still show no obvious missing-file error. A structural assertion that checks for the named tool body or another expected descendant gives stronger evidence than a success message from the asset import.
Sources
OpenUSD API reference, UsdReferences and references without prim paths
https://openusd.org/release/api/class_usd_references.html
OpenUSD API reference, UsdStage and root-layer default prim metadata
https://openusd.org/release/api/class_usd_stage.html