![]()
Implementing a Deformer Node
Deformers are implemented by deriving from the
MPxDeformerNodeclass. Any deformer that is derived from this class also acquires the full benefits of Maya’s internal deformer functionality. Please see the API description ofMPxDeformerNodefor more detailed and updated information.Deformers often require a helper node such as a locator in order to control the change of deformation. These helper nodes are called Accessories. Accessory nodes are optional and not required for deformers. The input attributes of the
MPxDeformerNodeclass are sufficient to perform the deformation. You should implement theaccessoryNodeSetup()andaccessoryAttribute()methods only if you want to deform geometry using an accessory.As
MPxDeformerNodederives fromMPxNode, acompute()method can be implemented in the class. You do not need to implement thecompute()method for simple deformers. Only implement thecompute()method if you need to modify the input geometry. Please see the API descriptions for an example ofcompute()method implementation.