diff --git a/leenkx/blender/lnx/logicnode/sound/LN_set_position_speaker.py b/leenkx/blender/lnx/logicnode/sound/LN_set_position_speaker.py new file mode 100644 index 0000000..cd38b3f --- /dev/null +++ b/leenkx/blender/lnx/logicnode/sound/LN_set_position_speaker.py @@ -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')