13 lines
		
	
	
		
			356 B
		
	
	
	
		
			Python
		
	
	
	
	
	
		
		
			
		
	
	
			13 lines
		
	
	
		
			356 B
		
	
	
	
		
			Python
		
	
	
	
	
	
|  | from lnx.logicnode.lnx_nodes import * | ||
|  | 
 | ||
|  | class LengthStringNode(LnxLogicTreeNode): | ||
|  |     """Returns the length of the given string.""" | ||
|  |     bl_idname = 'LNLengthStringNode' | ||
|  |     bl_label = 'String Length' | ||
|  |     lnx_version = 1 | ||
|  | 
 | ||
|  |     def lnx_init(self, context): | ||
|  |         self.add_output('LnxIntSocket', 'Length') | ||
|  | 
 | ||
|  |         self.add_input('LnxStringSocket', 'String') |