forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
22
leenkx/blender/lnx/logicnode/custom/LN_audio_pause.py
Normal file
22
leenkx/blender/lnx/logicnode/custom/LN_audio_pause.py
Normal file
@ -0,0 +1,22 @@
|
||||
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()
|
Reference in New Issue
Block a user