armory/blender/arm/logicnode/value_get_children.py

17 lines
467 B
Python
Raw Normal View History

2017-11-09 16:28:43 +01:00
import bpy
from bpy.props import *
from bpy.types import Node, NodeSocket
from arm.logicnode.arm_nodes import *
class GetChildrenNode(Node, ArmLogicTreeNode):
'''Get children node'''
bl_idname = 'LNGetChildrenNode'
bl_label = 'Get Children'
2020-08-07 19:05:48 +02:00
bl_icon = 'NONE'
2017-11-09 16:28:43 +01:00
def init(self, context):
self.inputs.new('ArmNodeSocketObject', 'Object')
2018-06-12 23:16:28 +02:00
self.outputs.new('ArmNodeSocketArray', 'Array')
2017-11-09 16:28:43 +01:00
add_node(GetChildrenNode, category='Value')