newton.usd.get_transform#
- newton.usd.get_transform(prim, local=True, xform_cache=None)[source]#
Extract the transform (position and rotation) from a USD Xform prim.
- Parameters:
prim (Prim) – The USD prim to query.
local (bool) – If True, get the local transformation; if False, get the world transformation.
xform_cache (XformCache | None) – Optional USD XformCache to reuse when computing world transforms (only used if
localis False).
- Returns:
A Warp transform containing the position and rotation extracted from the prim.
- Return type: