Skip to content

Instantly share code, notes, and snippets.

@spatial-bit
Last active January 13, 2022 19:05
Show Gist options
  • Save spatial-bit/d7f736938e6134d02d8f06435d3f5c3a to your computer and use it in GitHub Desktop.
Save spatial-bit/d7f736938e6134d02d8f06435d3f5c3a to your computer and use it in GitHub Desktop.
USD add references to stage #USD #OMNIVERSE
# how to do references to multiple files
import omni.usd
from pxr import UsdGeom
stage = omni.usd.get_context().get_stage()
sphere = stage.OverridePrim('/my_prim')
sphere.GetReferences().AddReference('./HelloWorld0.usda')
sphere.GetReferences().AddReference('./HelloWorld1.usda')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment