import bpy
from bpy.props import *
from bpy.types import Node, NodeSocket
from arm.logicnode.arm_nodes import *

class CanvasSetVisibleNode(Node, ArmLogicTreeNode):
    '''Canvas Set Visible node'''
    bl_idname = 'LNCanvasSetVisibleNode'
    bl_label = 'Canvas Set Visible'
    bl_icon = 'QUESTION'
    
    def init(self, context):
        self.inputs.new('ArmNodeSocketAction', 'In')
        self.inputs.new('NodeSocketString', 'Element')
        self.inputs.new('NodeSocketBool', 'Visible')
        self.outputs.new('ArmNodeSocketAction', 'Out')

add_node(CanvasSetVisibleNode, category='Canvas')

import bpy
from bpy.props import *
from bpy.types import Node, NodeSocket
from arm.logicnode.arm_nodes import *

class CanvasSetVisibleNode(Node, ArmLogicTreeNode):
    '''Canvas Set Visible node'''
    bl_idname = 'LNCanvasSetVisibleNode'
    bl_label = 'Canvas Set Visible'
    bl_icon = 'QUESTION'
    
    def init(self, context):
        self.inputs.new('ArmNodeSocketAction', 'In')
        self.inputs.new('NodeSocketString', 'Element')
        self.inputs.new('NodeSocketBool', 'Visible')
        self.outputs.new('ArmNodeSocketAction', 'Out')

add_node(CanvasSetVisibleNode, category='Canvas')

Canvas Set Visible node