newton.usd.get_quat#

newton.usd.get_quat(prim: Prim, name: str, default: quatf) quatf[source]#
newton.usd.get_quat(prim: Prim, name: str, default: None = None) quatf | None

Get a quaternion attribute value from a USD prim, validating that it’s finite and non-zero.

Parameters:
  • prim – The USD prim to query.

  • name – The name of the quaternion attribute to retrieve.

  • default – The default value to return if the attribute is not found or invalid.

Returns:

The quaternion attribute value as a Warp quaternion if it exists and is valid, otherwise the default value.