Hi guys,
I know that it's been a while since this post was created, but I found it looking in internet for some solution about this in python.
I can't believe that I couldnt find any example yet about this in python. Even I was checking Python API 2.0 just to check if there was something new that makes this works.
I made a simle MPxLocator that draws a simple line. That's all. I'm not drawing geometry or creating any specific shader. Just this:
def draw(self, view, path, style, status):
view.beginGL()
glFT.glBegin(OpenMayaRender.MGL_LINES)
glFT.glVertex3f(self.outX,
self.outY,
self.outZ)
glFT.glVertex3f(self.targetPosX,
self.targetPosY,
self.targetPosZ)
glFT.glEnd()
view.endGL()
So, my question is:
does anyone know if the implementation of the override functions is already possible in python? If it's so, it'd be really helpful some example.
Thanks!