I can create a MAYA_double4 type attribute:
MFnNumericAttribute fnNumAttr;
mBboxAttr = fnNumAttr.create("bBox", "bBox", MFnNumericData::k4Double, 0.0, &stat);
But if I want to work with it, I have only up to double3 functions?
MStatus stat;
MFnDependencyNode depNode(mHW->thisMObject(), &stat);
MPlug bboxPlug = depNode.findPlug(mHW->mBboxAttr, true, &stat);
MDataHandle data = bboxPlug.asMDataHandle();
//MAYA_double4 &v4 = data.asDouble4(); // no such method
MAYA_double3 &v3 = data.asDouble3(); // fine, but what about the fourth element?