I gave you an example in API 1.0. There are differences between the two APIs. I have never worked with API 2.0.
Your attributeAffects is not valid. The first argument must be an inputAttribute ans second must be outputAttribute. cls.attributeAffects( cls.attrIn_blendWeight, cls.attrIn_blendShapeMultiInput ) In your code you have two inputAttribute and with this error your imputeAttribute never affect outputAttribute. cls.attributeAffects(cls.attrIn_blendShapeMultiInput, cls. attrOut_colorPerVertex) In compute you must clean attribute. add this code at the end of compute data.setClean(plug) -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/023ea9fc-9a1b-444c-a753-a2b5c81cc280%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
