16 lines
478 B
Python
16 lines
478 B
Python
import bpy
|
|
from bpy.props import *
|
|
from bpy.types import Node, NodeSocket
|
|
from arm.logicnode.arm_nodes import *
|
|
|
|
class GetVisibleNode(ArmLogicTreeNode):
|
|
'''Get visible node'''
|
|
bl_idname = 'LNGetVisibleNode'
|
|
bl_label = 'Get Visible'
|
|
bl_icon = 'NONE'
|
|
|
|
def init(self, context):
|
|
self.inputs.new('ArmNodeSocketObject', 'Object')
|
|
self.outputs.new('NodeSocketBool', 'Visible')
|
|
|
|
add_node(GetVisibleNode, category=MODULE_AS_CATEGORY, section='props')
|