From 45e2e5200801b13ddc92b6d6fa7ae4208b49f940 Mon Sep 17 00:00:00 2001 From: Onek8 Date: Thu, 3 Jul 2025 03:52:39 +0000 Subject: [PATCH] Add leenkx/blender/lnx/logicnode/custom/LN_get_audio_position.py --- .../logicnode/custom/LN_get_audio_position.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 leenkx/blender/lnx/logicnode/custom/LN_get_audio_position.py diff --git a/leenkx/blender/lnx/logicnode/custom/LN_get_audio_position.py b/leenkx/blender/lnx/logicnode/custom/LN_get_audio_position.py new file mode 100644 index 0000000..6924107 --- /dev/null +++ b/leenkx/blender/lnx/logicnode/custom/LN_get_audio_position.py @@ -0,0 +1,17 @@ +from lnx.logicnode.lnx_nodes import * + +class GetAudioPositionNode(LnxLogicTreeNode): + """Gets the current playback position of 3D audio in seconds.""" + bl_idname = 'LNGetAudioPositionNode' + bl_label = 'Get Audio Position' + bl_description = 'Gets the current playback position of 3D audio in seconds.' + lnx_category = '3D_Audio' + lnx_version = 1 + + def lnx_init(self, context): + self.add_input('LnxDynamicSocket', 'Audio') + self.add_output('LnxFloatSocket', 'Position (seconds)') + +def register(): + add_category('3D_Audio', icon='SOUND') + GetAudioPositionNode.on_register() \ No newline at end of file