forked from LeenkxTeam/LNXSDK
18 lines
699 B
Python
18 lines
699 B
Python
|
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')
|
||
|
self.add_input('LnxFloatSocket', 'Position (seconds)')
|
||
|
|
||
|
self.add_output('LnxNodeSocketAction', 'Out')
|