My memory is that you just set the default value you want on the
attribute, like you would with other attributes like non-array
attributes, before you make it paintable. When it is paintable, it'll
still have that default value and you should see it that way in the
Artisan tools.

In other words, the default value setting goes with the attribute
creation, not with the step where that attribute is made paintable.
Something like...

nAttr = OpenMaya.MFnNumericAttribute()
MyNode.aGrayWeight = nAttr.create("grayWeight", "gw",
OpenMaya.MFnNumericData.kFloat)
nAttr.setArray(True)
nAttr.setDefault(0.5) # Here's the default value...
...

# Later, makePaintable is executed.

-- 
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 post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to