LNXSDK/leenkx/blender/lnx/logicnode/canvas/LN_set_canvas_slider.py

17 lines
511 B
Python
Raw Normal View History

2025-01-22 16:18:30 +01:00
from lnx.logicnode.lnx_nodes import *
class CanvasSetSliderNode(LnxLogicTreeNode):
"""Sets the value of the given UI slider."""
bl_idname = 'LNCanvasSetSliderNode'
bl_label = 'Set Canvas Slider'
lnx_section = 'elements_specific'
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxNodeSocketAction', 'In')
self.add_input('LnxStringSocket', 'Element')
self.add_input('LnxFloatSocket', 'Float')
self.add_output('LnxNodeSocketAction', 'Out')