14 lines
		
	
	
		
			414 B
		
	
	
	
		
			Python
		
	
	
	
	
	
		
		
			
		
	
	
			14 lines
		
	
	
		
			414 B
		
	
	
	
		
			Python
		
	
	
	
	
	
|  | from lnx.logicnode.lnx_nodes import * | ||
|  | 
 | ||
|  | class ArrayGetNode(LnxLogicTreeNode): | ||
|  |     """Returns the value of the given array at the given index.""" | ||
|  |     bl_idname = 'LNArrayGetNode' | ||
|  |     bl_label = 'Array Get' | ||
|  |     lnx_version = 1 | ||
|  | 
 | ||
|  |     def lnx_init(self, context): | ||
|  |         self.add_input('LnxNodeSocketArray', 'Array') | ||
|  |         self.add_input('LnxIntSocket', 'Index') | ||
|  | 
 | ||
|  |         self.add_output('LnxDynamicSocket', 'Value') |