Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® MotionBuilder® / Python / time delay in loop iterations
  RSS 2.0 ATOM  

time delay in loop iterations
Rate this thread
 
22055
 
Permlink of this thread  
avatar
  • Total Posts: 4
  • Joined: 18 January 2008 10:20 PM

I am looking for a way to “control” the speed a loop iterates.

for exampe, run the loop 2 seconds:

for i in range(-1,101):
do something here…
force a 1/50 sec delay

Anyone have any suggestion how to do that?



Replies: 0
avatar

I just found out in the docs that there is a FBSleep() miliseconds function, but where should I use it? it seems to create the delay before the loop or after, even if I insert the function inside the loop.



Replies: 0