I created a block of code that creates a compound attribute array and a child array attribute. When I create the node in Maya and try to "Add new item", I get the following error:
// Error: file: C:/Program Files/Autodesk/Maya2009/scripts/AETemplates/AEnewCompound.mel line 129: Found no attribute match for "node.childAttr" //
Here's what's in my cpp file:
MFnNumericAttribute childAttrFn;
aChild = childAttrFn.create("childAttr", "ca", MFnNumericData::kFloat, 0.0);
childAttrFn.setArray(true);
childAttrFn.setStorable(true);
childAttrFn.setKeyable(true);
childAttrFn.setReadable(true);
childAttrFn.setWritable(true);
childAttrFn.setUsesArrayDataBuilder(true);
addAttribute( aChild );
MFnCompoundAttribute cmpAttrFn;
aCmp = cmpAttrFn.create("Compound", "cmp");
cmpAttrFn.setArray(true);
cmpAttrFn.addChild( aChild );
cmpAttrFn.setReadable(true);
cmpAttrFn.setUsesArrayDataBuilder(true);
addAttribute( aCmp );

I was using the “weightListNode.cpp” example from Maya. I just compiled that plugin and got the same error! THANKS MAYA!!!