Functions to create archive-style USD

Stage Export or Flatten

Would just stage.Export() suffice? It basically writes out a flattened copy of your USD stage.

UsdUtils.FlattenLayerStack

Other options may be UsdUtils.FlattenLayerStack. Some other topics here cover that:

Usdz?

Another approach could be to make a usdz Zipped USD as is briefly described here - however it may contain more than you like in particular?

The usdzip —asset utility will create a package for you that contains all needed (localized) referenced usd layers, plus any images/textures the scene requires, and all composition will be retained.

1 Like