armory/blender/arm/logicnode/value_get_child.py
2017-04-08 00:34:45 +02:00

18 lines
507 B
Python

import bpy
from bpy.props import *
from bpy.types import Node, NodeSocket
from arm.logicnode.arm_nodes import *
class GetChildNode(Node, ArmLogicTreeNode):
'''Get child node'''
bl_idname = 'LNGetChildNode'
bl_label = 'Get Child'
bl_icon = 'GAME'
def init(self, context):
self.inputs.new('ArmNodeSocketObject', 'Object')
self.inputs.new('NodeSocketString', 'Child')
self.outputs.new('ArmNodeSocketObject', 'Object')
add_node(GetChildNode, category='Value')