WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 04-11-2009, 06:50 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
You could use viz.TOGGLE so that each time you press the key the timer will change states and your function will either start or stop being called

Code:
def funcA():
  timer1.setEnabled(viz.TOGGLE)

vizact.onkeydown('a',funcA)


def funcB():
  timer2.setEnabled(viz.TOGGLE)
  
vizact.onkeydown('b',funcB)
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
stopping a function durf Vizard 1 03-31-2009 04:45 PM
stopping a goto() vsully Vizard 1 01-24-2006 01:43 PM
partially stopping tracking vsully Vizard 1 01-12-2005 09:02 AM


All times are GMT -7. The time now is 03:06 PM.


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