WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 12-07-2007, 09:35 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
In Python, the result of dividing two integers will be another integer. Try the following in the interactive interpreter:
Code:
>>> 1/60
0
>>> 1/60.0
0.016666666666666666
>>> 1.0/60
0.016666666666666666
So your code is setting a timer to expire every 0 seconds, which will be every frame. You will need to do the following instead:
Code:
viz.starttimer(0,1/60.0,viz.FOREVER)
Reply With Quote
 

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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
timer question again Elittdogg Vizard 3 10-18-2007 10:29 AM
Timer speed Jerry Vizard 1 12-08-2006 11:01 AM
timer paulpars Vizard 2 06-14-2006 02:31 PM
Timer event documentation pkhoosh Vizard 1 10-21-2005 10:12 AM
multiple timer trouble exhale Vizard 2 04-26-2005 12:21 AM


All times are GMT -7. The time now is 02:56 PM.


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