Skip to content

Instantly share code, notes, and snippets.

@spatial-bit
Created January 19, 2022 18:46
Show Gist options
  • Save spatial-bit/0530e3dc3b127dfe783f06739558b485 to your computer and use it in GitHub Desktop.
Save spatial-bit/0530e3dc3b127dfe783f06739558b485 to your computer and use it in GitHub Desktop.
USD Get Cameras at Path #USD
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