not sure...when I had tried it previously it didnt work...this time it
did...my example had a small typo and I fixed it

On Mon, Feb 10, 2020 at 9:36 PM Ravi Jagannadhan <enr...@gmail.com> wrote:

> What was the issue?
>
> —
> “There are no dumb questions” - Carl Sagan.
>
> On Feb 10, 2020, at 21:35, Todd Widup <todd.wi...@gmail.com> wrote:
>
> 
> well..got it working
>
> On Mon, Feb 10, 2020 at 5:19 PM Todd Widup <todd.wi...@gmail.com> 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
>> todd.wi...@gmail.com
>>
>
>
> --
> 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/CABBPk34TwJ02%3Don95KtNac6JBiQhCB_QY6hjRW9JgKyePdh-nw%40mail.gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/CABBPk34TwJ02%3Don95KtNac6JBiQhCB_QY6hjRW9JgKyePdh-nw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> --
> 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/44736405-27B6-48C9-A67D-0C197FFBC4CE%40gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/44736405-27B6-48C9-A67D-0C197FFBC4CE%40gmail.com?utm_medium=email&utm_source=footer>
> .
>


-- 
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/CABBPk37LF-bH%3D6DJpiMh97E0rbf8uU3hy1phrksYjswL3DRquw%40mail.gmail.com.

Reply via email to