armory/blender/arm/logicnode/logic/LN_invert_output.py
2020-11-17 12:01:15 -03:00

16 lines
428 B
Python

from arm.logicnode.arm_nodes import *
class InverseNode(ArmLogicTreeNode):
"""Activates the output if the input is not active."""
bl_idname = 'LNInverseNode'
bl_label = 'Invert Output'
arm_section = 'flow'
arm_version = 1
def init(self, context):
super(InverseNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_output('ArmNodeSocketAction', 'Out')