Open topic with navigation
<viztask>.waitFrame
Wait for a specified number of frames
<viztask>.waitFrame( |
|
frames |
) |
|
frames
Number of frames to wait for
Remarks
This command will create a Condition object that will wait for the specified number of frames to elapse. This condition will wait for a minimum of 1 frame, even if the number of frames specified is less than 1.
Return Value
viztask.Condition object
Example
import viztask
def MyTask():
while True:
yield viztask.waitFrame(2)
print('2 frames have passed')
viztask.schedule( MyTask() )