2019-09-18 14:16:10 +02:00
|
|
|
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'
|
2020-08-07 19:00:46 +02:00
|
|
|
bl_icon = 'NONE'
|
2019-09-18 14:16:10 +02:00
|
|
|
|
|
|
|
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')
|