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')