armory/blender/arm/logicnode/logic/LN_invert_output.py
2020-09-30 12:00:18 -03:00

17 lines
468 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_version = 1
def init(self, context):
super(InverseNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_output('ArmNodeSocketAction', 'Out')
add_node(InverseNode, category=PKG_AS_CATEGORY, section='flow')