View Single Post
  #2  
Old 07-30-2012, 08:55 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,453
You need to check that the slider object passed to the callback function is sliderSWRD before changing that parameter:
Code:
def onSlider(obj,pos):
    if obj == sliderSWRD:
        #change parameter

viz.callback(viz.SLIDER_EVENT,onSlider)
You can also use the vizact.onslider command to call different callback functions based on which slider was changed:
Code:
def onSliderSWRD(pos):
	#do something
	
vizact.onslider(sliderSWRD,onSliderSWRD)

def onSliderSWEX(pos):
	#do something
	
vizact.onslider(sliderSWEX,onSliderSWEX)
Reply With Quote