forked from LeenkxTeam/LNXSDK
14 lines
433 B
Python
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')
|