2020-09-08 17:03:24 +02:00
|
|
|
from bpy.types import Node
|
|
|
|
|
2018-02-20 18:46:16 +01:00
|
|
|
from arm.logicnode.arm_nodes import *
|
|
|
|
|
2020-09-08 17:03:24 +02:00
|
|
|
|
2018-02-20 18:46:16 +01:00
|
|
|
class InverseNode(Node, ArmLogicTreeNode):
|
2020-09-08 17:03:24 +02:00
|
|
|
"""Inverse node"""
|
2018-02-20 18:46:16 +01:00
|
|
|
bl_idname = 'LNInverseNode'
|
|
|
|
bl_label = 'Inverse'
|
|
|
|
|
|
|
|
def init(self, context):
|
|
|
|
self.inputs.new('ArmNodeSocketAction', 'In')
|
|
|
|
self.outputs.new('ArmNodeSocketAction', 'Out')
|
|
|
|
|
2020-09-08 17:03:24 +02:00
|
|
|
|
|
|
|
add_node(InverseNode, category=MODULE_AS_CATEGORY, section='flow')
|