Menu with Show Terminal button¶
- In the Variant Sets module, click the Script tab.
- From the toolbar, click Add Variant Set icon.
- Rename the new variant set to VR_Terminal.
- Copy and paste the following script into the Script window.
snippets/vr_terminal.py¶
1# © 2024 Autodesk, Inc. All rights reserved.
2
3# Create VR menu button
4vr_terminal = vrImmersiveUiService.createTool("VR_Terminal")
5
6# Set text label on button
7vr_terminal.setText("Show\nTerminal")
8
9# Set module to display when clicked
10vr_terminal.setViewContent('Terminal')
- Right-click within the script tab and select Execute. Now, the Show Terminal button appears in the VR Menu.