#1
|
|||
|
|||
multiple sliders
Hello,
Hopeing there is a simple answer this this, but how do you distinguish between four sliders so that each slider alters a separate parameter. I have 4 sliders sliderSWRD, sliderSWEX, sliderRTRD, sliderRTEX set at the four corners of my screen. When I use the follwing code to detect a response from say SWRD and change a parameter it works fine; however, responding with any of the other sliders also changes that parameter and I don't want this to happen. HTML Code:
def reponse(): global radadj, radius, adjustswing, swingmiddle def myslider(sliderSWRD, pos): adjustswing=swingmiddle-pos def onMouseDown(button): if button == viz.MOUSEBUTTON_RIGHT: radius=radius+adjustswing sliderSWRD.disable() ### re-enabled elsewhere viz.callback(viz.MOUSEDOWN_EVENT,onMouseDown) viz.callback(viz.SLIDER_EVENT,myslider) |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Support for multiple video cards | kopper | Vizard | 2 | 06-07-2013 04:50 PM |
Multiple Cameras for AR artoolkit plugin | Pho46 | Vizard | 3 | 11-10-2010 07:59 PM |
Displaying multiple gui items in one line | Enlil | Vizard | 4 | 08-05-2009 08:43 AM |
multiple shadows using projector | theuberk | Vizard | 13 | 02-24-2009 03:56 AM |
Custom Drop-Down Menus and Sliders | south_bank | Vizard | 2 | 05-20-2008 05:27 AM |