hi,
i'm writing a custom node that has an input array attribute. when an
instance of this node is created i would like to populate the array with
several default values. within the context of an MPxNode where is the best
place to do this and how? calling getAttr myNode.myAttr[0] after creation
will add the element, but this seems pretty hacky to me and maya's nodes
don't resort to this. for example, the following code shows how a
fluidShape's incandescence has 3 elements after a createNode call:
s = createNode('fluidShape')
print getAttr(s + '.incandescence', size=1)
thanks,
chad
--
http://groups.google.com/group/python_inside_maya