External GUI to Control Variant Sets in VRED

External GUI to Control Variant Sets in VRED

schraderkonr
Community Visitor Community Visitor
364 Views
2 Replies
Message 1 of 3

External GUI to Control Variant Sets in VRED

schraderkonr
Community Visitor
Community Visitor

Hello everyone,

I’m currently working on a project in Autodesk VRED and have encountered a challenge that I hope someone here can help me with.

Objective: I want to create an external GUI (HTML page) that can control variant sets in VRED. The idea is to have this GUI running on a separate screen, allowing users to make changes, while people in VR can see these changes in real-time.

Current Setup:

  • VRED Version: VRED 2023
  • Environment: Restricted network with limited ability to install additional Python modules.

I went the documentation up and down but could not find exactly what i need as its rather overwhelming since i just started using VRED.

 

Any insights, suggestions, or examples would be greatly appreciated!

Thank you in advance for your help!

Best regards,

0 Likes
365 Views
2 Replies
Replies (2)
Message 2 of 3

seiferp
Community Manager
Community Manager

Attached an example that is quite old, thankfully still works but I haven´t looked into it in a while. Possible it could be solved differently and better these days. It requires you to enable the WebServer in the Preferences and I think also disabling Encrypted HTTPS Only and Secure Python. Open the VPB which has the HTML menu mapped to a plane but you can also open the HTML externally and trigger the scene from outside. Please look into the JavaScript. The helper function connects to the localhost:8888 port and with sendPython() you can trigger the VRED API to switch e.g VariantSets.

 

Hope you can work it out from there to your needs 😉

Message 3 of 3

k_schraderCVF9A
Observer
Observer

Thank's a lot. That worked for me!

0 Likes