Hi David,

I'm still trying to find a way to get a (MGLdouble const *) but I'm not
successfull yet... but your code seems to crash because of the
glFT.glPushMatrix() line... when I tried to use it, maya crashed for me
too...

I didn't worked with OpenGL in Python before and my experience in OpenGL in
C++ is preliminary, so I don't have any example...

but I'm on it...

On Tue, Jun 30, 2009 at 4:34 PM, David Corral <[email protected]> wrote:

>
> Hi Ozgur,
>
> I'm trying something like this:
>
> test = []
> for i in matrix2DoubleArray:
>        l = []
>        su = om.MScriptUtil()
>        su.createFromDouble(i[0])
>        l.append(su.asDoublePtr())
>        su.createFromDouble(i[1])
>        l.append(su.asDoublePtr())
>        su.createFromDouble(i[2])
>        l.append(su.asDoublePtr())
>        su.createFromDouble(i[3])
>        l.append(su.asDoublePtr())
>        test.append(l)
>
> glFT.glLoadMatrixd( test )
> # TypeError: in method 'MGLFunctionTable_glLoadMatrixd', argument 2 of
> type 'MGLdouble const *' //
>
> It seems that it needs a MGLdouble instead a doublePtr, any guess?
> Do you have any working example to do this?
>
> Thanks!
>
> >
>


-- 
E.Ozgur Yilmaz
Senior Technical Director
www.ozgurfx.com

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

Reply via email to