Files
LNXSDK/leenkx/blender/lnx/logicnode/object/LN_get_object_children.py

15 lines
454 B
Python

from lnx.logicnode.lnx_nodes import *
class GetChildrenNode(LnxLogicTreeNode):
"""Returns the children of the given object."""
bl_idname = 'LNGetChildrenNode'
bl_label = 'Get Object Children'
lnx_section = 'relations'
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxNodeSocketObject', 'Parent')
self.add_output('LnxNodeSocketArray', 'Children')
self.add_output('LnxIntSocket', 'Length')