Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

How to create dynamic text labels on VR controllers

LeviathanLevi
Contributor

How to create dynamic text labels on VR controllers

LeviathanLevi
Contributor
Contributor

Hi, when in VR I have the controller triggers set to cycle through different variant sets. I'd like the name of the current variant set that it's on to pop up next to the controllers as like a readable lable. This requires some kind of node I can dynamically change the text it displays

 

Is there something like this in VRED?

 

Maybe a new VR menu that is anchored next to the controller?

 

Any advice appreciated, thanks!

0 Likes
Reply
Accepted solutions (1)
444 Views
1 Reply
Reply (1)

__daniel.lincoln__
Autodesk
Autodesk
Accepted solution

Hello,

 

Yes, there is a specific API class for this:  vrdDeviceMessageData

Ref: https://help.autodesk.com/view/VREDPRODUCTS/2023/ENU/?guid=VRED_Python_Documentation_Python_API_V2_c...

 

Example:

md = vrdDeviceMessageData()
md.setBackgroundColor(QVector3D(255,255,255))
md.setPosition(QVector3D(0, 0, -50))
md.setText("Dynamic Text")
vrImmersiveInteractionService.showControllerMessage(md, True)

dynamic_controller_text.png

 

Search for 'setText' in the API to find other ways of creating dynamic text.

 

Regards,

Dan