make paintable attribute- maya


#1

Hey guys,
Trying to use the make paintable command in maya to make an attribute paintable. I created a new attribute:
mc.makePaintable(‘pSphereShape1’, ln = ‘paintedAttr’, dataType = ‘doubleArray’)
mc.makePaintable(‘mesh’, 'paintedAttr, attrType = ‘doubleArray’)

my question is is there a non-api way of getting the weights of this map?


#2

You can use the getAttr command to return a list of values

mc.getAttr(‘pSphereShape1.paintedAttr’)

David