forked from LeenkxTeam/LNXSDK
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			354 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			354 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from lnx.logicnode.lnx_nodes import *
 | 
						|
 | 
						|
class ArrayLengthNode(LnxLogicTreeNode):
 | 
						|
    """Returns the length of the given array."""
 | 
						|
    bl_idname = 'LNArrayLengthNode'
 | 
						|
    bl_label = 'Array Length'
 | 
						|
    lnx_version = 1
 | 
						|
 | 
						|
    def lnx_init(self, context):
 | 
						|
        self.add_input('LnxNodeSocketArray', 'Array')
 | 
						|
 | 
						|
        self.add_output('LnxIntSocket', 'Length')
 |