Hey guys,

I am writing a node in which for example i am connecting 4 inputs and doing 
my computation and having 4 output meshes. The problem I am facing is how 
do i put the meshes i made in their outputMesh[0], [1], [2], [3].


I ma using this to get the output array values

outputHandle = OpenMaya.MArrayDataHandle( dataBlock.outputArrayValue( 
self.outputMesh ) )

for i in xrange(4):

    dataCreator = OpenMaya.MFnMeshData()
    outputData = dataCreator.create()
    newMesh = OpenMaya.MFnMesh( outputData )

    newMesh.create(numVertices, 1, ptArray, faceCounts, faceConnects, 
outputData)

    outputHandle.jumpToElement( k )
    outDataHandle = outputHandle.outputValue()
    outDataHandle.child(self.outputMesh)
    outDataHandle.setMObject( outputData )


dataBlock.setClean( plug )


Well i am trying to do this. But i only get the first outputMesh working. 
The other 3 are not working.

Can anyone tell me what I am doing wrong.

Thanks.

D.

-- 
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/8916c002-ddbe-4198-99a3-68d395be9caf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to