I'm glad about helping you Jason :) The other way to have mesh in
deform method is this:
def deform( self, data, itGeo, localToWorldMatrix, multiIndex ):
inputArray = data.inputArrayValue
(OpenMayaMPx.cvar.MPxDeformerNode_input)
inputArray.jumpToElement( multiIndex )
inputData = inputArray.inputValue()
inputGeomDataH = inputData.child
( OpenMayaMPx.cvar.MPxDeformerNode_inputGeom)
inputMesh = inputGeomDataH.asMesh()
normVec = OpenMaya.MVector()
iter = OpenMaya.MItMeshVertex(inputMesh)
while iter.isDone() == False:
iter.getNormal(normVec)
iter.next()
Maybe using deform method instead of compute is better ? In deform
method there's also
localToWorld matrix available. I don't know which is better so maybe
someone can explain
when using compute instead of deform method.
--~--~---------~--~----~------------~-------~--~----~
Yours,
Maya-Python Club Team.
-~----------~----~----~----~------~----~------~--~---