2017-03-06 02:29:03 +01:00
|
|
|
import bpy
|
|
|
|
from bpy.props import *
|
|
|
|
from bpy.types import Node, NodeSocket
|
2017-03-15 12:30:14 +01:00
|
|
|
from arm.logicnode.arm_nodes import *
|
2017-03-06 02:29:03 +01:00
|
|
|
|
|
|
|
class SetVisibleNode(Node, ArmLogicTreeNode):
|
|
|
|
'''Set visible node'''
|
2017-04-04 23:11:31 +02:00
|
|
|
bl_idname = 'LNSetVisibleNode'
|
2017-03-06 02:29:03 +01:00
|
|
|
bl_label = 'Set Visible'
|
|
|
|
bl_icon = 'GAME'
|
|
|
|
|
|
|
|
def init(self, context):
|
2017-04-08 20:05:35 +02:00
|
|
|
self.inputs.new('ArmNodeSocketAction', 'In')
|
2017-04-08 00:34:45 +02:00
|
|
|
self.inputs.new('ArmNodeSocketObject', 'Object')
|
|
|
|
self.inputs.new('NodeSocketBool', 'Bool')
|
2017-04-08 20:05:35 +02:00
|
|
|
self.outputs.new('ArmNodeSocketAction', 'Out')
|
2017-03-06 02:29:03 +01:00
|
|
|
|
2017-04-08 20:05:35 +02:00
|
|
|
add_node(SetVisibleNode, category='Action')
|