forked from LeenkxTeam/LNXSDK
17 lines
611 B
Python
17 lines
611 B
Python
|
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()
|