I am writing a tool using API that need real time feedback of what polygon face id is under the mouse. Currently, I am just using the MFnMesh.closestIntersection and running through all the meshes in the scene to find it. It is pretty speedy with the mesh accelerator Params when there is small number of meshes, but unsurprisingly got slower as the scene got more complex.*
I have seen people using the MGlobal.selectFromScreen function but it does not really work well for me. During my testing, this function seems to trigger a ui refresh and the channel box will flicker and sometimes freeze. Not sure if I did something wrongly. Have anyone else encounter this issue?
Does anyone know of other fast method to find out which object is under the mouse that I am try? Thanks in advance.