Feedback

What's your question?

By: Asked

How does the MPxDeformerNode gets the world matrix?

Usually when implementing a Maya deformer nodes one inherits MPxDeformerNode and overrides the deform method. MPxDeformerNode calls deform for each of the input geometries and passes their world matrix.

Does anybody know how the MPxDeformerNode gets the world matrix?

Add comment viewed 145 times Latest activity 11 months ago

or Cancel

1 answer

  • 1

slavomir kaslev

Never mind, I figured that out by myself.

The MFnMeshData that comes as input from the input geometry plug is a subclass of MFnGeometryData which cat be associated with a matrix (MFnGeometryData::getMatrix/MFnGeometryData::setMatrix).

The matrix stored there is the input's world matrix.

or Cancel