Hi there, I’m trying to set the position of an object in USD (I’m still learning). Take the first example on the page:
from pxr import Usd, UsdGeom stage = Usd.Stage.CreateNew('HelloWorld.usda') xformPrim = UsdGeom.Xform.Define(stage, '/hello') spherePrim = UsdGeom.Sphere.Define(stage, '/hello/world') stage.GetRootLayer().Save()
How do I set the co-ordinates for the center of the object?
Have a look at this tutorial, please: https://openusd.org/release/tut_xforms.html#id5, and then the referenced documentation (a bit earlier in the tutorial) for UsdGeomXformable to see the entire list of xformOp types that you can add.
As they say in German, “Gracias”