2025-07-03 01:20:22 +00:00
|
|
|
from lnx.logicnode.lnx_nodes import *
|
|
|
|
|
|
|
|
|
|
class SetPositionSpeakerNode(LnxLogicTreeNode):
|
|
|
|
|
"""Sets the playback position of the given speaker object.
|
|
|
|
|
This node allows you to "scrub" through audio by setting the current playback position
|
|
|
|
|
to a specific time in seconds. The speaker must be playing for this to take effect.
|
|
|
|
|
"""
|
|
|
|
|
bl_idname = 'LNSetPositionSpeakerNode'
|
|
|
|
|
bl_label = 'Set Position Speaker'
|
|
|
|
|
lnx_version = 1
|
|
|
|
|
|
|
|
|
|
def lnx_init(self, context):
|
|
|
|
|
self.add_input('LnxNodeSocketAction', 'In')
|
|
|
|
|
self.add_input('LnxNodeSocketObject', 'Speaker')
|
2026-09-04 10:46:13 -07:00
|
|
|
self.add_input('LnxFloatSocket', 'Position')
|
2025-07-03 01:20:22 +00:00
|
|
|
|
|
|
|
|
self.add_output('LnxNodeSocketAction', 'Out')
|