armory/blender/arm/logicnode/logic/LN_invert_boolean.py
2021-07-20 20:53:37 +02:00

13 lines
376 B
Python

from arm.logicnode.arm_nodes import *
class NotNode(ArmLogicTreeNode):
"""Inverts the plugged-in boolean. If its input is `true` it outputs `false`."""
bl_idname = 'LNNotNode'
bl_label = 'Invert Boolean'
arm_version = 1
def arm_init(self, context):
self.add_input('ArmBoolSocket', 'Bool In')
self.add_output('ArmBoolSocket', 'Bool Out')