![]() |
#2
|
|||
|
|||
Within the slider callback you can compute the nearest defined point and move the tick to it. Example:
Code:
import viz import vizact viz.go() slider = viz.addSlider(pos=(0.5,0.1,0)) SLIDER_STEPS = 10 def UpdateSlider(pos): val = round(SLIDER_STEPS*pos) / float(SLIDER_STEPS) slider.set(val) vizact.onslider(slider,UpdateSlider) |
Tags |
addslider, numpy |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
positions on animation path | whj | Vizard | 3 | 10-27-2009 01:21 PM |