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

23 lines
669 B
Python

from lnx.logicnode.lnx_nodes import *
class ReadStorageNode(LnxLogicTreeNode):
"""Reads a value from the application's default storage file. Each
value is uniquely identified by a key.
For a detailed explanation of the storage system, please read the
documentation for the [`Write Storage`](#write-storage) node.
@seeNode Write Storage
"""
bl_idname = 'LNReadStorageNode'
bl_label = 'Read Storage'
lnx_section = 'file'
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxStringSocket', 'Key')
self.add_input('LnxStringSocket', 'Default')
self.add_output('LnxDynamicSocket', 'Value')