Resolving all file paths across a stage (dependencies)


Does anyone have an example of how to collect a list of all the file paths (absolute ideally) across an entire USD stage which many sublayers, references, and payloads?

I’ve had a look around the internet but haven’t found much. We basically have an existing dependency scanning framework which relies on traversing node graphs like katana and nuke which in turn yields absolute paths in our asset management system if we are loading a shot composition with many sublayers, references etc we need to capture a set of incoming versions if possible.

Have you tried Universal Scene Description: pxr/usd/usdUtils/dependencies.h File Reference ?

Hey, well I will get my coat…thanks!