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(): |
You need to check that the slider object passed to the callback function is sliderSWRD before changing that parameter:
Code:
def onSlider(obj,pos): Code:
def onSliderSWRD(pos): |
Excellent :) Thank you very much.
Jac |
All times are GMT -7. The time now is 03:09 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC