Vizard 8 » Command Index » Vizard objects » node3d » <node3d:GUI:slider>.get
8.0

<node3d:GUI:slider>.get

This action will return the current state of the Slider

<node3d:GUI:slider>.get()  

Remarks

This action will return the current state of the Slider. The state is a number between 0 and 1. 0 means that the tick is all the way to the left or bottom. 1 means that the tick is all the way to the right or top.

Return Value

A number between 0 and 1

Example

slider = viz.addSlider()
pos = slider.get()
print('The tick position is',pos)

See also

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