custom node with an array of input

36 views
Skip to first unread message

casf01

unread,
Nov 22, 2017, 3:17:58 PM11/22/17
to Python Programming for Autodesk Maya
Heya,

I'm trying to build a custom node that supports an array of vector as input like a multMatrix node but with vector rather than matrix.  But I don't what type of attribute to use.  I looked inside the devkit but I'm don't know what I should be looking for.

I tried using MFnVectorArrayData but I didn't get the expected result.  If anyone would kindly point me in the right direction that would be greatly apreciated :)

Thanks



casf01

unread,
Nov 22, 2017, 3:28:00 PM11/22/17
to Python Programming for Autodesk Maya
as always everytime I post something I always find the answer a few minutes after...

I simply had to use nAttr.array = True with my attribute ( using open api 2.0)

sigh.... 

Marcus Ottosson

unread,
Nov 23, 2017, 1:46:52 AM11/23/17
to python_in...@googlegroups.com
Thanks for sharing your solution. :) I've also wondered about this but haven't yet investigated hard enough on how to go about it.

--
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+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/40928ee3-577d-4d88-9069-04878201aa81%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages