armory/blender/arm/logicnode/canvas/LN_get_canvas_checkbox.py
2021-07-20 20:53:37 +02:00

13 lines
388 B
Python

from arm.logicnode.arm_nodes import *
class CanvasGetCheckboxNode(ArmLogicTreeNode):
"""Returns whether the given UI checkbox is checked."""
bl_idname = 'LNCanvasGetCheckboxNode'
bl_label = 'Get Canvas Checkbox'
arm_version = 1
def arm_init(self, context):
self.add_input('ArmStringSocket', 'Element')
self.add_output('ArmBoolSocket', 'Is Checked')