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

14 lines
433 B
Python

from lnx.logicnode.lnx_nodes import *
class ArrayContainsNode(LnxLogicTreeNode):
"""Returns whether the given array contains the given value."""
bl_idname = 'LNArrayInArrayNode'
bl_label = 'Array Contains'
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxNodeSocketArray', 'Array')
self.add_input('LnxDynamicSocket', 'Value')
self.add_output('LnxBoolSocket', 'Contains')