View Single Post
  #2  
Old 01-03-2006, 10:34 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

When the next slide is triggered, simply send a network message to the monitoring computer. Here is how to create a network object to send data through:
Code:
network = viz.add(viz.NETWORK,'MonitorComputerName')
Here is how you would send data to that computer:
Code:
network.send(1) #Slide 1 is being displayed
Then on the monitoring computer you would add the following code:
Code:
def onnetwork(message):
	print 'Slide',message[2],'is being displayed'

viz.callback(viz.NETWORK_EVENT,onnetwork)
Let me know if anything is unclear.
Reply With Quote