LNXSDK/leenkx/blender/lnx/logicnode/logic/LN_invert_boolean.py
2025-01-22 16:18:30 +01:00

13 lines
376 B
Python

from lnx.logicnode.lnx_nodes import *
class NotNode(LnxLogicTreeNode):
"""Inverts the plugged-in boolean. If its input is `true` it outputs `false`."""
bl_idname = 'LNNotNode'
bl_label = 'Invert Boolean'
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxBoolSocket', 'Bool In')
self.add_output('LnxBoolSocket', 'Bool Out')