LNXSDK/leenkx/blender/lnx/logicnode/logic/LN_is_not_null.py

17 lines
464 B
Python
Raw Normal View History

2025-01-22 16:18:30 +01:00
from lnx.logicnode.lnx_nodes import *
class IsNotNoneNode(LnxLogicTreeNode):
"""Passes through its activation only if the plugged-in value is
not `null`.
@seeNode Is Null"""
bl_idname = 'LNIsNotNoneNode'
bl_label = 'Is Not Null'
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxNodeSocketAction', 'In')
self.add_input('LnxDynamicSocket', 'Value')
self.add_output('LnxNodeSocketAction', 'Out')