forked from LeenkxTeam/LNXSDK
Add leenkx/blender/lnx/logicnode/sound/LN_set_position_speaker.py
This commit is contained in:
@ -0,0 +1,17 @@
|
||||
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')
|
Reference in New Issue
Block a user