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

17 lines
518 B
Python
Raw Permalink Normal View History

2025-01-22 16:18:30 +01:00
from lnx.logicnode.lnx_nodes import *
class CanvasSetCheckBoxNode(LnxLogicTreeNode):
"""Sets the state of the given UI checkbox."""
bl_idname = 'LNCanvasSetCheckBoxNode'
bl_label = 'Set Canvas Checkbox'
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('LnxBoolSocket', 'Check')
self.add_output('LnxNodeSocketAction', 'Out')