forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
19
leenkx/blender/lnx/logicnode/logic/LN_pulse.py
Normal file
19
leenkx/blender/lnx/logicnode/logic/LN_pulse.py
Normal file
@ -0,0 +1,19 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
class PulseNode(LnxLogicTreeNode):
|
||||
"""Sends a signal repeatedly between the given time interval until you stop it.
|
||||
|
||||
@input Start: Starts to send the signals
|
||||
@input Stop: Stops to send the signals
|
||||
@input Interval: The interval between the signals
|
||||
"""
|
||||
bl_idname = 'LNPulseNode'
|
||||
bl_label = 'Pulse'
|
||||
lnx_version = 1
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxNodeSocketAction', 'Start')
|
||||
self.add_input('LnxNodeSocketAction', 'Stop')
|
||||
self.add_input('LnxFloatSocket', 'Interval', default_value=0.1)
|
||||
|
||||
self.add_output('LnxNodeSocketAction', 'Out')
|
Reference in New Issue
Block a user