LNXSDK/leenkx/blender/lnx/logicnode/sound/LN_play_speaker.py
2025-01-22 16:18:30 +01:00

19 lines
552 B
Python

from lnx.logicnode.lnx_nodes import *
class PlaySpeakerNode(LnxLogicTreeNode):
"""Starts the playback of the given speaker object. If the playback was
paused, it is resumed from the paused position.
@seeNode Pause Speaker
@seeNode Play Speaker
"""
bl_idname = 'LNPlaySoundNode'
bl_label = 'Play Speaker'
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxNodeSocketAction', 'In')
self.add_input('LnxNodeSocketObject', 'Speaker')
self.add_output('LnxNodeSocketAction', 'Out')