newton.usd.get_scale#
- newton.usd.get_scale(prim, local=True, xform_cache=None)[source]#
Extract the scale component from a USD prim’s transformation.
- Parameters:
prim (Prim) – The USD prim to query for scale information.
local (bool) – If True, get the local scale; if False, get the world scale.
xform_cache (XformCache | None) – Optional USD XformCache to reuse when computing world transforms (only used if
localis False).
- Returns:
The scale as a Warp vec3.
- Return type: