LNXSDK/leenkx/blender/lnx/logicnode/sound/LN_stop_speaker.py

19 lines
529 B
Python
Raw Permalink Normal View History

2025-01-22 16:18:30 +01:00
from lnx.logicnode.lnx_nodes import *
class StopSpeakerNode(LnxLogicTreeNode):
"""Stops playback of the given speaker object. The playback position will be
reset to the start.
@seeNode Pause Speaker
@seeNode Play Speaker
"""
bl_idname = 'LNStopSoundNode'
bl_label = 'Stop Speaker'
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxNodeSocketAction', 'In')
self.add_input('LnxNodeSocketObject', 'Speaker')
self.add_output('LnxNodeSocketAction', 'Out')