I think you need to use MScriptUtil to generate a pointer to GLdouble... On Mon, Jun 29, 2009 at 5:29 PM, David Corral <[email protected]> wrote:
> > 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! > > > -- E.Ozgur Yilmaz Senior Technical Director www.ozgurfx.com --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/python_inside_maya -~----------~----~----~----~------~----~------~--~---
