0

I am working on inputting USDZ XYZ coordinates into Python; essentially, I want the XYZ coordinates from my USDZ file as an array or as some data type (For example, XYZ_coord = [[x1, y1, z1]...[xi, yi, zi]]) so I can influence it and export that back into the USDZ file to change the USDZ files shape. I was wondering if there was some API or module I can use to achieve this. I've been looking at Pxr's API to achieve this and my following code with the API is such:

   stage_ref = Usd.Stage.Open("US.USDZ")
   prim = stage_ref.GetPrimAtPath("US.USDZ/Geom")
   attr = prim.GetAttribute("Point3d")
   XYZ_coord = attr.Get()

This has not been working as if I print out XYZ_coord it returns None. Thank you for any help or suggestions!

wroex24
  • 33
  • 7

0 Answers0