I need to know which object (and which primnum) is under the mouse pointer during a custom viewport python state.
I could find only node.geometry().intersect() method, but indeed it works only for a single node/geometry, while I need to check different objects.
Workarounds I can think of:
1) Merge the different objects together, which result in a single messy geometry, full of useless attributes merged together. I don't like it but could be fast.
2) Or throw a ray for every object I need to check. Cleaner but, in case of many objects, could it potentially lead to lag in my viewport python state as the intersect is triggered at every mouse movement?
Do you have any advice?
thanks!