18 lines
598 B
Python
18 lines
598 B
Python
import bpy
|
|
from bpy.props import *
|
|
from bpy.types import Node, NodeSocket
|
|
from arm.logicnode.arm_nodes import *
|
|
|
|
class CanvasSetCheckBoxNode(Node, ArmLogicTreeNode):
|
|
'''Set canvas check box'''
|
|
bl_idname = 'LNCanvasSetCheckBoxNode'
|
|
bl_label = 'Canvas Set Check Box'
|
|
bl_icon = 'QUESTION'
|
|
|
|
def init(self, context):
|
|
self.inputs.new('ArmNodeSocketAction', 'In')
|
|
self.inputs.new('NodeSocketString', 'Element')
|
|
self.inputs.new('NodeSocketBool', 'Value')
|
|
self.outputs.new('ArmNodeSocketAction', 'Out')
|
|
|
|
add_node(CanvasSetCheckBoxNode, category='Canvas')
|