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

15 lines
458 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-09-30 17:00:18 +02:00
bl_label = 'Invert Bool'
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')
self.add_output('NodeSocketBool', 'Bool Out')
2017-04-20 00:13:43 +02:00
add_node(NotNode, category=PKG_AS_CATEGORY)