WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 03-17-2008, 10: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:
Code:
import viz
viz.go()

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
vizact.onslider(slider1,Slider1Change)

def Slider2Change(pos):
	print 'Slider 2 pos',pos
vizact.onslider(slider2,Slider2Change)
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
General question and question regarding arrays dan12345 Vizard 1 01-15-2008 11:15 AM
Stereo Overlap question JMOwens Vizard 2 01-08-2008 09:54 AM
viztask question asimbh Vizard 1 11-20-2007 10:12 AM
question about yaw, pitch, roll TunTun Vizard 2 05-23-2007 01:46 PM
Lots of Question Karthi Vizard 4 02-20-2004 07:42 PM


All times are GMT -7. The time now is 10:30 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC