IC Python API:RLPy RPyTimerCallback

From Reallusion Wiki!
Revision as of 02:29, 28 April 2020 by Chuck (RL) (Talk | contribs)

Jump to: navigation, search
Main article: Modules.
Last modified: 04/28/2020

Description

Used to register and recieve the status of the timer callback.

Inheritance

RCallback> RPyTimerCallback
 1 class MyPyTimerCallback(RLPy.RPyTimerCallback):
 2    def __init__(self):
 3        RLPy.RPyTimerCallback.__init__(self)
 4    def Timeout(self):
 5        print ("timeout")
 6  
 7 timer = RLPy.RPyTimer()
 8 timer.SetInterval(100)
 9 # register callback
10 timer_callback = MyPyTimerCallback()
11 timer.RegisterPyTimerCallback(timer_callback)
12 # start timer
13 timer.Start()

See Also: RPyTimer