_pyGetObjectAttribute#

Fully qualified name: usd_optimize::_pyGetObjectAttribute

RefCountedPyObject usd_optimize::_pyGetObjectAttribute(
PyObject *pyObject,
const std::string &attributeName,
)#

Attempts to get named attribute from a Python object.

Parameters:
  • pyObject – The Python object to retrieve the attribute from

  • attributeName – The name of the attribute to retrieve

Throws:

std::runtime_error – if the attribute does not exist or retrieving the attribute raises an exception