Community
VRED Forum
Welcome to Autodesk’s VRED Forums. Share your knowledge, ask questions, and explore popular VRED topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to use the horizontal slider in VRED in my own scripts?

0 REPLIES 0
Reply
Message 1 of 1
KristofferHelander
197 Views, 0 Replies

How to use the horizontal slider in VRED in my own scripts?

In VRED there is a horizontal value slider that allows you to slide for infinity. You can see examples of this in the Transform module window for Translate X, Y, Z, see the image below.

 

 

There is also a similar slider in the Light Editor for Intensity, but it looks a bit different.

 

But I can't find something like this in PySide or the VRED API documentation. I've tried the QDial and the QSpinBox but none of them have the same appearence nor quite the same functionallity. QDial only goes one lapse so it is not very intuitive for the user that you can keep sliding. QSpinBox has a min and max value what makes it not an infinite slider, but since I want it to work for position that can be very large values in the scene this could be a problem. Since VRED users are used to this horizontal slider that is also a reason I want to use it, so that it is intuitive for the user to understand how to use the script. 

 

So how do I create sliders like these in my own script? Can you show me a script example? Thanks!

Tags (3)
Labels (1)
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report