Technical reference note

Package OpenUSD Dependencies with UsdUtils

Extract and localize USD references, payloads, and sublayers while checking resolver context and package limits.

Transfer Failures and Recovery 2 min read

Updated 09 Nov 2026

A USD stage can load on the machine that authored it and fail after delivery because an asset path resolves only in that machine’s context. OpenUSD’s UsdUtils API can help expose and localize dependencies, but the package result depends on resolver setup and any path-processing policy.

OpenUSD dependency traversal and USDZ packaging with resolver context, path policy, directory checks, and receiver testing.

Separate discovery from packaging

Start from the intended root layer and record the resolver context, search paths, and environment used to resolve it. OpenUSD’s dependency traversal can report external references, payloads, and sublayers reachable from a layer. This is a useful inventory for comparing what the authoring environment resolves with what the delivery is expected to contain.

Dependency discovery and USDZ creation are separate operations. The packaging API can localize the named asset and discovered external dependencies, but the asset-resolver context must be configured before packaging. If discovery reports unresolved paths, resolve those in the intended context before treating the package as ready. See the UsdUtils API documentation for the dependency analysis and packaging interfaces.

Record path processing

Processing policy changes package membership: Traverse; Rewrite; Include or exclude; Inspect

A processing function can alter a discovered path, add a dependency, or exclude an asset from localization during recursive traversal. That makes the function part of the package definition. Record the exact policy and review its output: a changed path or excluded asset can alter what the receiver composes.

The package API ignores directory dependencies. If a layer refers to a directory whose contents matter to the project, enumerate and inspect those files separately; the directory reference does not mean its contents were all included.

Inspect the delivered package in the receiver context

After packaging, inspect the USDZ contents and confirm that the root layer, required assets, and relative paths are present. Test the package in the context expected at the destination, including the resolver behavior relevant to the receiver. Compare the composed stage and task-required properties with the preserved source.

A discovered dependency list is not proof of universal closure. A package that opens is not proof that composition, materials, references, or downstream behavior match the intended result. For a general dependency inventory and clean-context check, see find missing CAD references, scene assets, and package dependencies.

Key points

  • Configure and record the resolver context before packaging.
  • Treat dependency discovery and package creation as distinct observations.
  • Review any path transformation, added dependency, or exclusion applied during traversal.
  • Inspect directory contents and the delivered archive explicitly.
  • Reopen the package in the intended receiver context and validate the properties needed by the downstream task.