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.
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.