forked from LeenkxTeam/LNXSDK
		
	
		
			
	
	
		
			14 lines
		
	
	
		
			457 B
		
	
	
	
		
			Python
		
	
	
	
	
	
		
		
			
		
	
	
			14 lines
		
	
	
		
			457 B
		
	
	
	
		
			Python
		
	
	
	
	
	
|  | from lnx.logicnode.lnx_nodes import * | ||
|  | 
 | ||
|  | 
 | ||
|  | class RandomVectorNode(LnxLogicTreeNode): | ||
|  |     """Generates a random vector.""" | ||
|  |     bl_idname = 'LNRandomVectorNode' | ||
|  |     bl_label = 'Random Vector' | ||
|  |     lnx_version = 1 | ||
|  | 
 | ||
|  |     def lnx_init(self, context): | ||
|  |         self.add_input('LnxVectorSocket', 'Min', default_value=[-1.0, -1.0, -1.0]) | ||
|  |         self.add_input('LnxVectorSocket', 'Max', default_value=[1.0, 1.0, 1.0]) | ||
|  |         self.add_output('LnxVectorSocket', 'Vector') |