armory/blender/arm/logicnode/object/LN_get_children.py
2020-09-23 17:12:25 -03:00

15 lines
483 B
Python

from arm.logicnode.arm_nodes import *
class GetChildrenNode(ArmLogicTreeNode):
"""Use to get the children of an object."""
bl_idname = 'LNGetChildrenNode'
bl_label = 'Get Children'
arm_version = 1
def init(self, context):
super(GetChildrenNode, self).init(context)
self.add_input('ArmNodeSocketObject', 'Parent')
self.add_output('ArmNodeSocketArray', 'Children')
add_node(GetChildrenNode, category=PKG_AS_CATEGORY, section='relations')