Hey,

out of no particular reason I'm investigating into ways of drawing an artisan 
brush like brush circle into the maya viewport with the python API. I managed 
to program a context plugin that gives me world coordinates of my mouse and 
updates when moving it. To my understanding the next step would have been to 
use openGL to draw a shape into the viewport, a bit like the MPxLocatorNode 
draw method does the job. As I don't have much experience with OpenGL yet I 
found that I wasn't able to draw anything in a maya plugin, outside of the draw 
method of some Maya API MPx classes (correct me if I'm wrong). So what are my 
possibilities now?

1. I guess I could just go in and write a MPxLocatorNode that draws my shape 
and uses my mouse coordinates as input. My context would create that node when 
initialised and delete it on closeUp. I just can't imagine that that is the 
most efficient way!?

2. I started to look into the QtOpenGL module and the QGLWidget. Is there a 
clever way to use that widgets drawing functionality on the Maya viewport 
widget?

3. I just found out of the QPainter class but haven't looked deeply into it 
yet? Is that something to look closer into?

any help or the smallest hint is much appreciated!

thanks!

-v

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to