forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
16
leenkx/blender/lnx/logicnode/event/LN_on_timer.py
Normal file
16
leenkx/blender/lnx/logicnode/event/LN_on_timer.py
Normal file
@ -0,0 +1,16 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
class OnTimerNode(LnxLogicTreeNode):
|
||||
"""Activates the output when a given time elapsed (optionally repeating the timer).
|
||||
|
||||
@input Duration: the time in seconds after which to activate the output
|
||||
@input Repeat: whether to repeat the timer"""
|
||||
bl_idname = 'LNOnTimerNode'
|
||||
bl_label = 'On Timer'
|
||||
lnx_version = 1
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxFloatSocket', 'Duration')
|
||||
self.add_input('LnxBoolSocket', 'Repeat')
|
||||
|
||||
self.add_output('LnxNodeSocketAction', 'Out')
|
Reference in New Issue
Block a user