Vizard 8 » Command Index » Vizard modules » viz » <viz>.waitTime
8.0

<viz>.waitTime

This command waits until a certain amount of time has passed. IMPORTANT: Only use this command from within a director function

<viz>.waitTime(  
seconds  
)  
seconds
The number of seconds 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 amount of time has passed.

Return Value

None

Example

def example():
   
    #wait for 3 seconds
    viz.waitTime(3)  
   
    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