<viz>.waitFrame

This command waits until a certain number of frames have been rendered. IMPORTANT: Only use this command from within a director function

 

<viz>.waitFrame(
    frames = 1    

)

 

frames = 1

The number of frames to wait for


Remarks

This command should only be used within a director function. When this command is called it pauses the director function and waits until the given number of frames have been rendered.

Return Value

None

Example

def example():
   
    #wait for 10 frames
    viz.waitFrame(10)  
   
    viz.logNotice('Starting file operation')

    file = open('data.txt', 'r')    
   
    for line in file:
        last = line
   
    file.close()

    viz.logNotice('The last line is: ',last)
   
viz.director(example)

See also

<viz>.director
<viz>.waitKeyPress
<viz>.waitTime