Custom opengl drawing using MUIDrawManager

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
I am currently learning the Maya Python API 2.0 and trying to do some custom OPENGL drawing in the viewport 2.0.
I went through the footPrintNode.py sample from the devkit and modified it to create some shapes in the viewport.
However that sample and most of the other programs in the devkit, create dependency node plugins using the maya.cmds.createNode() command.
This results in the creation of a node which can be seen in the outliner.
My objective is to do my opengl drawing without creating any nodes in Maya, for example, like the knife tool which draws opengl lines between the click points.
So, my question is -
Is it possible to do opengl drawing by using a command plugin? If so, how do I access the MUIDrawmanager class in a command plugin.
I have searched a lot but did not find any sample plugins or examples in this regard.
Any help will be highly appreciated.