armory/blender/arm/logicnode/logic/LN_is_not_none.py
2020-09-23 17:12:25 -03:00

16 lines
507 B
Python

from arm.logicnode.arm_nodes import *
class IsNotNoneNode(ArmLogicTreeNode):
"""Runs the output if the input value is not null."""
bl_idname = 'LNIsNotNoneNode'
bl_label = 'Is Not None'
arm_version = 1
def init(self, context):
super(IsNotNoneNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('NodeSocketShader', 'Value')
self.add_output('ArmNodeSocketAction', 'Out')
add_node(IsNotNoneNode, category=PKG_AS_CATEGORY)