Creating an outline effect on 3D objects (Scene View)

Is there a way to create an outline purple effect when hovering an object with the mouse?
I know basically how to use scene View widgets to captruie stage on hover , but creating the effect itself I don’t know.

I don’t think that’s possible currently. You could try using a ui.scene.PolygonMesh, giving it the same data as the mesh you’re hovering, and then scaling the PolygonMesh up a little. I imagine this would draw on top though.

is there a on hover selection event, like the change selection one ?

The viewport_api has a request_query function that will do what you want. The docs say that forVP1, it only works on click, but VP2 it should work for any mouse state.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.