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

27 lines
649 B
Python

from lnx.logicnode.lnx_nodes import *
class SetMapValueNode(LnxLogicTreeNode):
"""Set Map Value.
@input In: Set the map.
@input Map: Map to set values.
@input Key: Key to be set.
@input Value: Value for the key.
"""
bl_idname = 'LNSetMapValueNode'
bl_label = 'Set Map Value'
lnx_version = 1
def init(self, context):
self.add_input('LnxNodeSocketAction', 'In')
self.add_input('LnxDynamicSocket', 'Map')
self.add_input('LnxDynamicSocket', 'Key')
self.add_input('LnxDynamicSocket', 'Value')
self.add_output('LnxNodeSocketAction', 'Out')