Skip to content

Instantly share code, notes, and snippets.

@spatial-bit
Last active January 13, 2022 19:07
Show Gist options
  • Save spatial-bit/b179aa1eb9ffceb81ab3c524768d8045 to your computer and use it in GitHub Desktop.
Save spatial-bit/b179aa1eb9ffceb81ab3c524768d8045 to your computer and use it in GitHub Desktop.
USD get prim at path+ #USD #OMNIVERSE
# USD get prim
import omni.usd
from pxr import UsdGeom
stage = omni.usd.get_context().get_stage()
prim = stage.GetPrimAtPath('/Motions')
# look at children of prim and print path as string
target_prim_path = prim.GetAllChildren()[0].GetPath().pathString
print(target_prim_path)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment