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?


-- 
Todd Widup
Creature TD / Technical Artist
todd.wi...@gmail.com

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CABBPk37hWRkN5Tdi6iQb312WEBfK-08YxJ8L16V7fHSDLRD6aw%40mail.gmail.com.

Reply via email to