Files
LNXSDK/leenkx/blender/lnx/logicnode/sound/LN_get_position_speaker.py

12 lines
428 B
Python
Raw Normal View History

from lnx.logicnode.lnx_nodes import *
class GetPositionSpeakerNode(LnxLogicTreeNode):
"""Gets the current playback position of the given speaker object in seconds."""
bl_idname = 'LNGetPositionSpeakerNode'
bl_label = 'Get Position Speaker'
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxNodeSocketObject', 'Speaker')
self.add_output('LnxFloatSocket', 'Position (seconds)')