armory/blender/arm/logicnode/logic/LN_invert_boolean.py

14 lines
417 B
Python
Raw Normal View History

2017-04-20 00:13:43 +02:00
from arm.logicnode.arm_nodes import *
class NotNode(ArmLogicTreeNode):
2020-10-05 19:55:56 +02:00
"""Inverts the plugged-in boolean. If its input is `true` it outputs `false`."""
2017-04-20 00:13:43 +02:00
bl_idname = 'LNNotNode'
2020-10-26 15:20:50 +01:00
bl_label = 'Invert Boolean'
arm_version = 1
2020-09-08 21:49:02 +02:00
2017-04-20 00:13:43 +02:00
def init(self, context):
super(NotNode, self).init(context)
2020-09-20 20:10:01 +02:00
self.add_input('NodeSocketBool', 'Bool In')
2020-11-17 16:01:15 +01:00
2020-09-20 20:10:01 +02:00
self.add_output('NodeSocketBool', 'Bool Out')