newton.usd.get_custom_attribute_declarations#

newton.usd.get_custom_attribute_declarations(prim)[source]#

Get custom attribute declarations from a USD prim, typically from a PhysicsScene prim.

Supports metadata format with assignment and frequency specified as customData:

custom float newton:namespace:attr_name = 150.0 (
    customData = {
        string assignment = "control"
        string frequency = "joint_dof"
    }
)
Parameters:

prim (Usd.Prim) – USD PhysicsScene prim to parse declarations from.

Returns:

A dictionary of custom attribute declarations mapping from attribute name to ModelBuilder.CustomAttribute object.

Return type:

dict[str, ModelBuilder.CustomAttribute]