forked from LeenkxTeam/LNXSDK
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			679 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			679 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from lnx.logicnode.lnx_nodes import *
 | |
| 
 | |
| 
 | |
| class StringCharAtNode(LnxLogicTreeNode):
 | |
|     """String CharAt"""
 | |
|     bl_idname = 'LNStringCharAtNode'
 | |
|     bl_label = 'String CharAt'
 | |
|     bl_description = 'Returns the character at position index of the String. If the index is negative or exceeds the string.length, an empty String "" is returned.'
 | |
|     lnx_category = 'String'
 | |
|     lnx_version = 1
 | |
| 
 | |
|     def lnx_init(self, context):
 | |
|         self.add_input('LnxNodeSocketAction', 'In')
 | |
|         self.add_input('LnxStringSocket', 'String')
 | |
|         self.add_input('LnxIntSocket', 'Index')
 | |
| 
 | |
|         self.add_output('LnxNodeSocketAction', 'Out')
 | |
|         self.add_output('LnxStringSocket', 'Char')
 |