LNXSDK/leenkx/blender/lnx/logicnode/custom/LN_audio_pause.py

22 lines
641 B
Python
Raw Normal View History

2025-01-22 16:18:30 +01:00
from lnx.logicnode.lnx_nodes import *
class AudioPauseNode(LnxLogicTreeNode):
"""Pause Audio"""
bl_idname = 'LNAudioPauseNode'
bl_label = 'Pause Audio'
bl_description = 'Trigger the pause 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')
AudioPauseNode.on_register()