perfect!   this did the trick!

thanx brian!

i was trying too hard to get something with using
OpenMayaMPx.cvar.MPxDeformerNode_outputGeom i think!  ;)




On Nov 20, 7:10 pm, <[EMAIL PROTECTED]> wrote:
> I dealt with the very same issue recently creating a custom deformer.
> This is what I used to get the mesh into a MFnMesh:
> def deform(self,dataBlock,geomIter,matrix,multiIndex):
>         inputH  = OpenMaya.MArrayDataHandle( 
> dataBlock.inputArrayValue(self.input) )
>         inputH.jumpToElement(multiIndex)
>         inputGeomH = OpenMaya.MDataHandle( 
> inputH.inputValue().child(self.inputGeom) )
>         inputObject = OpenMaya.MObject(inputGeomH.data() )
>         meshFn = OpenMaya.MFnMesh( inputObject )
> Hope that helps,
> -Brian
> www.meljunky.com
--~--~---------~--~----~------------~-------~--~----~
Yours,
Maya-Python Club Team.
-~----------~----~----~----~------~----~------~--~---

Reply via email to