I made a maya modelPanel Capture Tool referencing http://nathanhorne.com/?p=261 , and it' works well.
But, recently I make another tool using openGL, and it is just drawing brief object.
I used PyQt and the openGL part is reimplemented QGLWidget.
If I activate the openGL tool, and try to capture modelPanel, capture tool misworks.
As I see it captures openGL tool's panel and even ruins the openGL tool.
I read that "M3dView.readColorBuffer" works in openGL's method.
Existing 2 openGL things don't works together? Is it true?
EDIT....
I found the solution.
In capture process, add something.
Before read the color buffer, refresh the view.
view.refresh()
view.readColorBuffer(image, True)