2025-01-22 16:18:30 +01:00

23 lines
637 B
Python

from lnx.logicnode.lnx_nodes import *
class AudioStopNode(LnxLogicTreeNode):
"""Stop Audio"""
bl_idname = 'LNAudioStopNode'
bl_label = 'Stop Audio'
bl_description = 'Trigger the stop function on audio'
lnx_category = '3D_Audio'
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxNodeSocketAction', 'In')
self.add_input('LnxDynamicSocket', 'Audio')
self.add_output('LnxNodeSocketAction', 'Out')
self.add_output('LnxDynamicSocket', 'Audio')
def register():
add_category('3D_Audio', icon='SOUND')
AudioStopNode.on_register()