16 lines
		
	
	
		
			516 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			516 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from lnx.logicnode.lnx_nodes import *
 | 
						|
 | 
						|
class ArraySetNode(LnxLogicTreeNode):
 | 
						|
    """Sets the value of the given array at the given index."""
 | 
						|
    bl_idname = 'LNArraySetNode'
 | 
						|
    bl_label = 'Array Set'
 | 
						|
    lnx_version = 1
 | 
						|
 | 
						|
    def lnx_init(self, context):
 | 
						|
        self.add_input('LnxNodeSocketAction', 'In')
 | 
						|
        self.add_input('LnxNodeSocketArray', 'Array')
 | 
						|
        self.add_input('LnxIntSocket', 'Index')
 | 
						|
        self.add_input('LnxDynamicSocket', 'Value')
 | 
						|
 | 
						|
        self.add_output('LnxNodeSocketAction', 'Out')
 |