How to select a node and run the isolate function with only a right-click event

Hello, I’ll hope you are doing well

I have a question while studying the hoops function.

In the example you provided, I wonder how you recognize nodeid when you run context menu with just right click and when you run functions such as isolate or zoom.

Thank you

Not sure if I fully understand the question, but the way our UI works with the context menu, is that we capture the mouse right click event and use the coordinates at the mouse position to perform a picking operation (link). That functions will return the nodeid of the entity under the mouse cursor and from there we can perform operations like isolate/zoom/etc.

1 Like

Sorry for the late reply
Your advice helped me a lot
thanks!

1 Like