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

16 lines
529 B
Python
Raw Normal View History

2025-01-22 16:18:30 +01:00
from lnx.logicnode.lnx_nodes import *
class ClearParentNode(LnxLogicTreeNode):
"""Removes the parent of the given object."""
bl_idname = 'LNClearParentNode'
bl_label = 'Remove Object Parent'
lnx_section = 'relations'
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxNodeSocketAction', 'In')
self.add_input('LnxNodeSocketObject', 'Object')
self.add_input('LnxBoolSocket', 'Keep Transform', default_value=True)
self.add_output('LnxNodeSocketAction', 'Out')