Last active
January 13, 2022 19:07
-
-
Save spatial-bit/b179aa1eb9ffceb81ab3c524768d8045 to your computer and use it in GitHub Desktop.
USD get prim at path+ #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
# 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