WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 09-16-2016, 04:51 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
It sounds like you could set this up within a task function and wait for the sensor event to both start and stop the drawing:

Code:
def DrawingTask():
	
	while True:

		yield viztask.waitEvent(viz.SENSOR_DOWN_EVENT)
		# start drawing
		
		yield viztask.waitEvent(viz.SENSOR_DOWN_EVENT)
		# stop drawing
		

viztask.schedule( DrawingTask() )
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
Need help with Phantom omni sebzim4500 Vizard 3 05-26-2016 08:05 AM
Phantom omni Vs Vizard blessonisaac Vizard 2 03-23-2011 02:25 PM
Phantom Omni Device Scripts vSuejung Vizard 1 09-17-2008 04:42 PM
Phantom Omni Demo betancourtb82 Vizard 1 10-17-2006 10:23 AM
Direct access to phantom omni data vsully Vizard 1 03-14-2006 09:44 AM


All times are GMT -7. The time now is 09:54 AM.


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