newton.usd.get_custom_attribute_values#

newton.usd.get_custom_attribute_values(prim, custom_attributes)[source]#

Get custom attribute values from a USD prim and a set of known custom attributes. Returns a dictionary mapping from ModelBuilder.CustomAttribute.key to the converted Warp value. The conversion is performed by ModelBuilder.CustomAttribute.usd_value_transformer().

Parameters:
  • prim (Usd.Prim) – The USD prim to query.

  • custom_attributes (Sequence[ModelBuilder.CustomAttribute]) – The custom attributes to get values for.

Returns:

A dictionary of found custom attribute values mapping from attribute name to value.

Return type:

dict[str, Any]