22 lines
641 B
Python
22 lines
641 B
Python
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() |