forked from LeenkxTeam/LNXSDK
17 lines
583 B
Python
17 lines
583 B
Python
|
|
from lnx.logicnode.lnx_nodes import *
|
||
|
|
|
||
|
|
class GetSpeakerDataNode(LnxLogicTreeNode):
|
||
|
|
"""Gets the data of the given speaker."""
|
||
|
|
bl_idname = 'LNGetSpeakerDataNode'
|
||
|
|
bl_label = 'Get Speaker Data'
|
||
|
|
lnx_version = 1
|
||
|
|
|
||
|
|
def lnx_init(self, context):
|
||
|
|
self.add_input('LnxNodeSocketObject', 'Speaker')
|
||
|
|
|
||
|
|
self.add_output('LnxFloatSocket', 'Volume')
|
||
|
|
self.add_output('LnxFloatSocket', 'Pitch')
|
||
|
|
self.add_output('LnxIntSocket', 'Channels')
|
||
|
|
self.add_output('LnxNodeSocketArray', 'Length')
|
||
|
|
self.add_output('LnxNodeSocketArray', 'Position')
|