MFnNumericAttribute numAttr; MObject attrObject = numAttr.create("myAttr", "ma", MFnNumericData::kDouble, 1.0);
numAttr.setMin(0.0); numAttr.setMax(10.0);
double value; numAttr.getDouble(attrObject, value);This retrieves the current value of `myAttr` and stores it in the `value` variable. The `Maya API` library provides a variety of classes for working with nodes and attributes in the Maya scene graph. `MFnNumericAttribute` specifically belongs to the `Foundation` package library.