23 lines
		
	
	
		
			669 B
		
	
	
	
		
			Python
		
	
	
	
	
	
		
		
			
		
	
	
			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')
							 |