Hi there,

I'm trying to translate/port this C++ code to python, but i having
some problems:

MDagPath mdpCamera;
MMatrix  mmCameraInclusive;
MMatrix  mmCameraInclusiveInverse;
double   dInverseCameraMatrix[4][4];
msStatus = view.getCamera(mdpCamera);
mmCameraInclusive = mdpCamera.inclusiveMatrix(&msStatus);
mmCameraInclusiveInverse = mmCameraInclusive.inverse();
msStatus = mmCameraInclusiveInverse.get(dInverseCameraMatrix);
glPushMatrix();
glLoadMatrixd((GLdouble *)dInverseCameraMatrix); // <--------

First at all, i cant reproduce the 'float [4][4]' needed for:
mmCameraInclusiveInverse.get(dInverseCameraMatrix)

Also, i cant reproduce this:
glLoadMatrixd((GLdouble *)dInverseCameraMatrix);

Has Someone tried to do something like this with python?!

Thanks in advance!
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---

Reply via email to