Custom Tool Sub Menu in VR Menu

Custom Tool Sub Menu in VR Menu

fbruchD4CS2
Contributor Contributor
834 Views
2 Replies
Message 1 of 3

Custom Tool Sub Menu in VR Menu

fbruchD4CS2
Contributor
Contributor

Hi there! 

I am currently working on a custom immersive tools menu for VR and I would like to add a submenu for a custom tool I created. I added the custom tool with vrImmersiveUiService.createTool(), but the returned vrdImmersiveTool class doesn't seem to have a "createSubMenu()" function or something similar. I would like to build something similar to the Viewpoints or Variant Sets tool, where clicking on the button in VR opens a sub menu with further functionality. 

I also tried vrImmersiveUiService.openToolsSubMenu(tool) with my custom tool as tool parameter, but nothing happens. 

Can someone tell me if what I am trying to achieve is possible and if so how it can be done? 

 

Thank you very much in advance!

- Florian

0 Likes
Accepted solutions (1)
835 Views
2 Replies
Replies (2)
Message 2 of 3

__daniel.lincoln__
Alumni
Alumni
Accepted solution

Hi Florian,

 

I'm glad to hear you are customizing VRED.

There is a short script in the ~examples/vr folder called customMenuButton.py that shows how to connect submenus.

 

Regards,

Dan

 

0 Likes
Message 3 of 3

fbruchD4CS2
Contributor
Contributor

Hi Dan, 

 

I thought you were enjoying your retirement by now 🙂 

Thank you for the tip, I will try this in the office tomorrow and "accept the solution" if it works! 

 

- Florian

0 Likes