newton.usd.get_custom_attribute_values#

newton.usd.get_custom_attribute_values(prim, custom_attributes, context=None)[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().

The context dictionary passed to the transformer function always contains: - "prim": The USD prim to query. - "attr": The CustomAttribute object to get the value for. It may additionally include caller-provided keys from the context argument.

Parameters:
Returns:

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

Return type:

dict[str, Any]