Has anyone figured out VP2 selection in with locator nodes in 2016? I’m rendering a locator with an MPxDrawOverride, using addUIDrawables and MUIDrawManager. According to this, as of 2016 it should automatically do hit testing using the geometry given to drawManager when in VP2, but the object isn’t getting selected.
The boundingBox methods of both the MPxDrawOverride and the MPxLocatorNode nodes are getting called and returning something reasonable. MPxLocatorNode.useClosestPointForSelection never gets called, which seems correct for VP2 selection. MPxDrawOverride.refineSelectionPath never gets called, which is confusing, but maybe it's just not making it that far. I think that's where I'll need to set the selection mask.
The goal is to reproduce the viewport handles that HumanIK has: drawn in xray, selectable by clicking anywhere in the handle and not just on a wireframe so they’re easy to select. If anyone wants to take a look: testNode.py

