well..got it working

On Mon, Feb 10, 2020 at 5:19 PM Todd Widup <[email protected]> wrote:

> 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
> [email protected]
>


-- 
Todd Widup
Creature TD / Technical Artist
[email protected]

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CABBPk34TwJ02%3Don95KtNac6JBiQhCB_QY6hjRW9JgKyePdh-nw%40mail.gmail.com.

Reply via email to