LNXSDK/leenkx/blender/lnx/logicnode/logic/LN_invert_output.py
2025-01-22 16:18:30 +01:00

15 lines
385 B
Python

from lnx.logicnode.lnx_nodes import *
class InverseNode(LnxLogicTreeNode):
"""Activates the output if the input is not active."""
bl_idname = 'LNInverseNode'
bl_label = 'Invert Output'
lnx_section = 'flow'
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxNodeSocketAction', 'In')
self.add_output('LnxNodeSocketAction', 'Out')