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

19 lines
536 B
Python
Raw Normal View History

2025-01-22 16:18:30 +01:00
from lnx.logicnode.lnx_nodes import *
class SetVolumeSoundNode(LnxLogicTreeNode):
"""sets volume of the given speaker object.
@seeNode Play Speaker
@seeNode Stop Speaker
"""
bl_idname = 'LNSetVolumeSoundNode'
bl_label = 'Set Volume Speaker'
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxNodeSocketAction', 'In')
self.add_input('LnxNodeSocketObject', 'Speaker')
self.add_input('LnxFloatSocket', 'Volume')
self.add_output('LnxNodeSocketAction', 'Out')