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')