VRED Pro 2020 or 2021 VR Menu Python script toggle

VRED Pro 2020 or 2021 VR Menu Python script toggle

Shawn_Collins-Lopez
Enthusiast Enthusiast
786 Views
2 Replies
Message 1 of 3

VRED Pro 2020 or 2021 VR Menu Python script toggle

Shawn_Collins-Lopez
Enthusiast
Enthusiast

Hi Pascal, I was looking for a Python script to toggle the VR menu on and off using a Variant and not just on the Vive controller when in OpenVR HMD mode.  I found the following in the documentation but I am not able to get it to work.

 

vrdImmersiveMenu.setVisible(True)

 

Found the script here: file:///C:/Program%20Files/Autodesk/VREDPro-13.0/doc/v2/class_vrdImmersiveMenu.html?highlight=vr%20m...

 

This is the error in the terminal:

Traceback (most recent call last):

File "<string>", line 1, in <module>

TypeError: descriptor 'setVisible' requires a 'vrKernelServices.vrdImmersiveMenu' object but received a 'bool'

 

My Python skills are not able to fix it. I did try this script:

vrKernelServices.vrdImmersiveMenu.setVisible(True)

No luck

 

In addition I was really looking to add a timer to the VR Menu to auto close because of the users issues having it left open.  If anyone knows of a Python script for this please share!

 

Thank you,

Shawn

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

Shawn_Collins-Lopez
Enthusiast
Enthusiast
Accepted solution

Hey Pascal, I found the correct Python command:

 

vrImmersiveUiService.showToolsMenu(True)

 

This works!  Now I need to make a timer for the VR Menu

 

Thank you,

Shawn

Message 3 of 3

seiferp
Community Manager
Community Manager

Good 👍

0 Likes