Canvas Set Visible

Python : canvas_set_visible.py
Haxe : CanvasSetVisibleNode.hx
Example : logic_canvas.blend
This commit is contained in:
Sandy 2019-09-18 21:16:10 +09:00 committed by GitHub
parent adcfb4b6fa
commit 405887b2a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,18 @@
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')