im having alot of trouble with matrices in the maya api.

im simply trying to output a matrix that is created from a function
within a pluggin im trying to create. the only trouble is, when
creating the matrix in the plugin all the values are different.
what i have is:


getMatrix = OpenMaya.MMatrix()
matrixList:[0.182, -0.963, -0.193, 0.0, 0.925, 0.235, -0.297, 0.0,
0.3329, -0.125, 0.934, 0.0, -2.194, 1.085, 0.058, 1.0]
OpenMaya.MScriptUtil().createMatrixFromList(matrixList,
WorldNode.getMatrix)
newMatrix=block.outputValue(WorldNode.newMatrix)
newMatrix.setMMatrix(WorldNode.getMatrix)

and whats being produced in maya is a completely different matrix of:
[0.0, 1.557, -3689348814741910300.0, -1.866,-0.000, -1.569, 0.000,
0.000,0.000, 1.856, -2.000, 1.610, 3689348814741910300.000, -1.649,
0.000, 0.000]

any idea what may cause this??

thanks for any help you might be able to give

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

Reply via email to