Last active
January 13, 2022 19:05
-
-
Save spatial-bit/d7f736938e6134d02d8f06435d3f5c3a to your computer and use it in GitHub Desktop.
USD add references to stage #USD #OMNIVERSE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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