LNXSDK/leenkx/blender/lnx/logicnode/object/LN_get_object_parent.py

16 lines
460 B
Python
Raw Normal View History

2025-01-22 16:18:30 +01:00
from lnx.logicnode.lnx_nodes import *
class GetParentNode(LnxLogicTreeNode):
"""Returns the direct parent (nearest in the hierarchy) of the given object.
@seeNode Set Object Parent"""
bl_idname = 'LNGetParentNode'
bl_label = 'Get Object Parent'
lnx_section = 'relations'
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxNodeSocketObject', 'Child')
self.add_output('LnxNodeSocketObject', 'Parent')