Created
January 19, 2022 18:46
-
-
Save spatial-bit/0530e3dc3b127dfe783f06739558b485 to your computer and use it in GitHub Desktop.
USD Get Cameras at Path #USD
This file contains hidden or 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
from pxr import UsdGeom, Usd, UsdGeom | |
stage = Usd.Stage.Open('stage.usda') | |
device_prim = stage.GetPrimAtPath('/world/device') | |
for prim in Usd.PrimRange(device_prim): | |
if prim.IsA(UsdGeom.Camera): | |
print(prim.GetName()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment