<vizact>.ontimer

Perform an action on a certain time interval.

 

<vizact>.ontimer(
    rate    
    func    
    *args    

)

 

rate

The rate at which to call the function (in seconds)


func

The function to call when the timer expires


*args

Arguments to pass to func.


Remarks

This will call the specified function with the specified arguments on the specified interval. The timer will repeat indefinitely.

Return Value

The timer event.

Example

def dostuff():
    print viz.getFrameNumber()
vizact.ontimer(1,dostuff)