I am trying to add an array attr to my node, thats easy...but I am having an issue when I make that attr a vector
aInValueX2 = nAttr.create("inX2", "ix2", MFnNumericData::kFloat);
nAttr.setKeyable(true);
nAttr.setHidden(false);
nAttr.setWritable(true);
nAttr.setChannelBox(true);
aInValueY2 = nAttr.create("inY2", "iy2", MFnNumericData::kFloat);
nAttr.setKeyable(true);
nAttr.setHidden(false);
nAttr.setWritable(true);
nAttr.setChannelBox(true);
aInValueZ2 = nAttr.create("inZ2", "i2z", MFnNumericData::kFloat);
nAttr.setKeyable(true);
nAttr.setHidden(false);
nAttr.setWritable(true);
nAttr.setChannelBox(true);
aInValue2 = nAttr.create("in2", "i2", aInValueX2, aInValueY2, aInValueZ2, &status);
nAttr.setArray(true);
nAttr.setKeyable(true);
nAttr.setHidden(false);
nAttr.setWritable(true);
nAttr.setChannelBox(true);
addAttribute(aInValue);
This is not adding the attribute in the node at all. I can add each channel as an array, but when I make them the child of an attr and that attr an array it does nothing..it does compile fine, just no in2 attr in Maya...any suggestions?