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

16 lines
460 B
Python

import bpy
from bpy.props import *
from bpy.types import Node, NodeSocket
from arm.logicnode.arm_nodes import *
class CanvasGetVisibleNode(ArmLogicTreeNode):
"""Returns whether the given UI element is visible."""
bl_idname = 'LNCanvasGetVisibleNode'
bl_label = 'Get Canvas Visible'
arm_version = 1
def arm_init(self, context):
self.inputs.new('ArmStringSocket', 'Element')
self.outputs.new('ArmBoolSocket', 'Is Visible')