15 lines
		
	
	
		
			447 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			447 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from lnx.logicnode.lnx_nodes import *
 | 
						|
 | 
						|
class SubStringNode(LnxLogicTreeNode):
 | 
						|
    """Returns a part of the given string."""
 | 
						|
    bl_idname = 'LNSubStringNode'
 | 
						|
    bl_label = 'Sub String'
 | 
						|
    lnx_version = 1
 | 
						|
 | 
						|
    def lnx_init(self, context):
 | 
						|
        self.add_input('LnxStringSocket', 'String In')
 | 
						|
        self.add_input('LnxIntSocket', 'Start')
 | 
						|
        self.add_input('LnxIntSocket', 'End')
 | 
						|
 | 
						|
        self.add_output('LnxStringSocket', 'String Out')
 |