Nice, hopefully we will find the way :) I'm not very used to opengl though.
Here are my updates: It seems that we need to convert two times a matrix/list, first at all, we need to pass to the glGetFloatv an .asFloatPtr() and then convert that matrix/list again to an .asDoublePtr() With this way doesn't crash, but doesn't work either. "suPointer" seems to be at 0.0 :S we might have to convert each item from the list, instead of the whole list. But didn't work for me. Should be a way... #get modelview matrix glFT.glPushMatrix() modelview = (0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0) su = om.MScriptUtil() su.createFromList(modelview,16) suPointer = su.asFloatPtr() glFT.glGetFloatv(omRender.MGL_MODELVIEW,suPointer)#MGL_VIEWPORT su = om.MScriptUtil() su.createFromList(suPointer,16) suPointer = su.asDoublePtr() #set camera matrix to opengl glFT.glPushMatrix() glFT.glLoadMatrixd( suPointer ) #start drawing... glFT.glPopMatrix(); btw: here is a little bit of more info: http://www.highend3d.com/boards/index.php?showtopic=253168 --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/python_inside_maya -~----------~----~----~----~------~----~------~--~---
