Hi all and thanks in advance for help! :)

I'm currently working on a python node wich combine mesh.

Everything work well but every mesh "go o origin". This is normal, I
have to muliply vertex position to the mesh matrix.

The prob is with MFloatMatrix and MMatrix:

inMeshMDagPath = currentInMeshMFnMesh.dagPath() # return MDagPath
object
inMeshInclusiveMMatrix = inMeshMDagPath.inclusiveMatrix()       # return
MMatrix

[...later...]

inMeshMPointArray[i] *= inMeshInclusiveMMatrix    # multiply the
points to the matrix

The prob is the * operator only work with MFloatMatrix and me, I give
a MMatrix.

I've found there a method from bateman (http://forums.cgsociety.org/
showthread.php?t=598626) but this is C++.

I just would like to know how to convert a MMatrix to a MFloatMatrix
easely in python...

Thanks in advance, have a good day! :)

-- 
http://groups.google.com/group/python_inside_maya

Reply via email to