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

19 lines
539 B
Python

from lnx.logicnode.lnx_nodes import *
class SetSoundSpeakerNode(LnxLogicTreeNode):
"""sets sound name of the given speaker object.
@seeNode Play Speaker
@seeNode Stop Speaker
"""
bl_idname = 'LNSetSoundNode'
bl_label = 'Set Sound Speaker'
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxNodeSocketAction', 'In')
self.add_input('LnxNodeSocketObject', 'Speaker')
self.add_input('LnxStringSocket', 'Sound Name')
self.add_output('LnxNodeSocketAction', 'Out')