- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've made a custom selection context using MPxSelectionContext in Python API2.0, and successfully enabled preSelectHilighting, so as the user moves the mouse cursor around, the component underneath it lights up (just like with regular select).
However, I'd really like the highlight to continue to show up and update while the button is pressed and the user is dragging, but currently the viewport seems to freeze during drag (apart from any drawManager drawing I perform, of course).
Is there some way to make my doDrag() method also display the regular dynamic preSelectHilight? I guess I'm after something similar to what you see when using the standard Maya TAB-drag selection mechanism...?
I wasn't sure whether I was supposed to be responsible for determining the components I wanted to preSelect and then make doDrag() push those using om.MGlobal.setPreselectionHiliteList() or something, but if that's the case, how do I determine the face, edge or vertex under the cursor? atm, I'm doing that by querying the preSelectionHilight List!
Solved! Go to Solution.