Vizard 7 » Command Index » Vizard objects » node3d » <node3d:GUI:slider>.set
7.7

<node3d:GUI:slider>.set

This action will set the current state of the slider

<node3d:GUI:slider>.set(  
position  
)  
position
The current position of the slider, between 0 and 1

Remarks

This will set the current position of the tick

Return Value

None

Example

slider = viz.addSlider()
slider.set(0.5) # Put the tick in the middle of the slider.

See also

<node3d:GUI:slider>.dragging
<node3d:GUI:slider>.get