LNXSDK/leenkx/blender/lnx/logicnode/map/LN_map_key_exists.py

16 lines
489 B
Python
Raw Normal View History

2025-01-22 16:18:30 +01:00
from lnx.logicnode.lnx_nodes import *
class MapKeyExistsNode(LnxLogicTreeNode):
"""Map Key Exists"""
bl_idname = 'LNMapKeyExistsNode'
bl_label = 'Map Key Exists'
lnx_version = 1
def init(self, context):
self.add_input('LnxNodeSocketAction', 'In')
self.add_input('LnxDynamicSocket', 'Map')
self.add_input('LnxDynamicSocket', 'Key')
self.add_output('LnxNodeSocketAction', 'True')
self.add_output('LnxNodeSocketAction', 'False')