PDA

View Full Version : Adding attributes to array attributes


Phlok
02-08-2009, 12:52 PM
Hi,

if I add an attribute of an an array type to an existing shapeNode, e.g.:

mc.addAttr(myShapeNode, longName = ''fluidList", dataType = 'stringArray', multi = True, indexMatters = True, writable = True, readable = True)

How can I add elements to that array attribute, e.g. fluidList[0], fluidList[1]...etc. ?

DOor
02-09-2009, 07:21 PM
I believe you need to set a value for the index in question using a setAttr command. alternatively if you are using this attribute as a destination connection maya will automatically index it.

CGTalk Moderation
02-09-2009, 07:21 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.