2025-01-22 16:18:30 +01:00
|
|
|
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')
|
2026-09-04 10:46:13 -07:00
|
|
|
self.add_output('LnxIntSocket', 'Length')
|