2017-04-20 00:13:43 +02:00
|
|
|
from arm.logicnode.arm_nodes import *
|
|
|
|
|
2020-09-08 21:16:20 +02:00
|
|
|
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'
|
2020-09-13 11:27:58 +02:00
|
|
|
arm_version = 1
|
2020-09-08 21:49:02 +02:00
|
|
|
|
2017-04-20 00:13:43 +02:00
|
|
|
def init(self, context):
|
2020-09-13 11:27:58 +02:00
|
|
|
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')
|