WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 02-18-2009, 03:49 AM
DrunkenBrit DrunkenBrit is offline
Member
 
Join Date: Dec 2008
Location: England
Posts: 25
For Loop in Callbacks?

Hi,

I'm assuming you can't have for loops (or any loops?) inside timer callback functions? I'm getting an invalid syntax error when attempting this. If this is the case, I take it it's due to the for loop possibly taking longer to execute than the time before the callback should be invoked again?

Thanks,

-DB
__________________
Software Developer
Virtalis Ltd.
www.virtalis.com
Reply With Quote
  #2  
Old 02-18-2009, 09:57 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
There is no limitation on what you can do in a callback. The problem is probably that you have invalid syntax in your code. Can you post the code and the Python traceback of the error?
Reply With Quote
  #3  
Old 02-19-2009, 12:26 AM
DrunkenBrit DrunkenBrit is offline
Member
 
Join Date: Dec 2008
Location: England
Posts: 25
I solved it pretty much after I posted thanks, it was just a newbie syntax error but it confused me as the exact same for loop worked outside of the callback.
__________________
Software Developer
Virtalis Ltd.
www.virtalis.com
Reply With Quote
Reply

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
pausing non-timer callbacks vadrian Vizard 1 01-25-2005 12:35 PM


All times are GMT -7. The time now is 10:06 AM.


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