LNXSDK/leenkx/blender/lnx/logicnode/canvas/LN_get_canvas_checkbox.py
2025-01-22 16:18:30 +01:00

15 lines
427 B
Python

from lnx.logicnode.lnx_nodes import *
class CanvasGetCheckboxNode(LnxLogicTreeNode):
"""Returns whether the given UI checkbox is checked."""
bl_idname = 'LNCanvasGetCheckboxNode'
bl_label = 'Get Canvas Checkbox'
lnx_section = 'elements_specific'
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxStringSocket', 'Element')
self.add_output('LnxBoolSocket', 'Is Checked')