I ended up using a Qt eventFilter on the viewport to capture the event from Qt and it seems to work fine.
On Jan 11, 10:27 pm, Chad Vernon <[email protected]> wrote: > I'm trying to replicate a brush tool much like the Artisan brush and the > Shave and a Haircut brush. I have an MPxContext set up and working fine and > the actual brush functionality seems to be working fine, I would just like > to render the opengl red brush ring for visual feedback. I want this to be > visible and follow the mouse around whether the mouse button is pressed or > not. I scoured the docs and couldn't fine any mouse move callback. > MPxContext has doPress, doDrag, doRelase, and doEnterRegion but no plain > mouse move event or callback. I noticed on Shave and a Haircut's brush tool > that when you enter the context, it creates some dummy transform called > shaveBrushProxy that follows the mouse around in the projected viewport > coordinates so there has to be some sort of callback or hook I can use. > Anyone have any ideas? > > Thanks, > Chad -- http://groups.google.com/group/python_inside_maya
