View Single Post
Old 03-17-2008, 09:41 AM
farshizzo farshizzo is offline
WorldViz Team Member
Join Date: Mar 2003
Posts: 2,849
The identity of a slider object is the object itself. Have a look at the docs for viz.SLIDER_EVENT, it explains how to determine which slider has changed. You can also use vizact.onslider for setting up callbacks for individual slider changes. Here is some sample code:
import viz

slider1 = viz.addSlider(pos=(0.5,0.1,0))
slider2 = viz.addSlider(pos=(0.5,0.2,0))

def Slider1Change(pos):
	print 'Slider 1 pos',pos

def Slider2Change(pos):
	print 'Slider 2 pos',pos
Reply With Quote