diff --git a/leenkx/blender/lnx/logicnode/sound/LN_get_position_speaker.py b/leenkx/blender/lnx/logicnode/sound/LN_get_position_speaker.py new file mode 100644 index 0000000..571bc99 --- /dev/null +++ b/leenkx/blender/lnx/logicnode/sound/LN_get_position_speaker.py @@ -0,0 +1,11 @@ +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)')