nerfstudio-project / viser

Web-based 3D visualization + Python
https://viser.studio/latest
Apache License 2.0
596 stars 31 forks source link

Click events in the scene tree? #188

Open jatentaki opened 3 months ago

jatentaki commented 3 months ago

Hi, I really like the scene tree as it helps me organize my input views. In fact, in my case it would be much more convenient for the user to click on items in the scene tree (to snap to their POVs) instead of having to find them in the 3d viewport where they may be clumped together. Is there a way to achieve this effect? I can obviously create a bunch of buttons, one per view, but that duplicates the already present functionality of the scene tree.

brentyi commented 3 months ago

Hello!

There's unfortunately no way to do this right now; the functionality of the scene tree table is pretty limited.

I would entertain a PR for triggering the click event for an object from the scene tree table, but adding a button for each input view like you described seems like it would be the easiest + possibly most flexible long-term.