newton.usd.has_attribute#

newton.usd.has_attribute(prim, name)[source]#

Check if a USD prim has a valid and authored attribute.

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

  • name (str) – The name of the attribute to check.

Returns:

True if the attribute exists, is valid, and has an authored value, False otherwise.

Return type:

bool