newton.usd.get_float#
- newton.usd.get_float(prim: Prim, name: str, default: float) float[source]#
- newton.usd.get_float(prim: Prim, name: str, default: None = None) float | None
Get a float attribute value from a USD prim, validating that it’s finite.
- Parameters:
prim – The USD prim to query.
name – The name of the float attribute to retrieve.
default – The default value to return if the attribute is not found or is not finite.
- Returns:
The float attribute value if it exists and is finite, otherwise the default value.