armory/blender/arm/logicnode/object/LN_get_object_children.py
2020-11-17 12:01:15 -03:00

15 lines
451 B
Python

from arm.logicnode.arm_nodes import *
class GetChildrenNode(ArmLogicTreeNode):
"""Returns the children of the given object."""
bl_idname = 'LNGetChildrenNode'
bl_label = 'Get Object Children'
arm_section = 'relations'
arm_version = 1
def init(self, context):
super(GetChildrenNode, self).init(context)
self.add_input('ArmNodeSocketObject', 'Parent')
self.add_output('ArmNodeSocketArray', 'Children')