16 lines
		
	
	
		
			478 B
		
	
	
	
		
			Python
		
	
	
	
	
	
		
		
			
		
	
	
			16 lines
		
	
	
		
			478 B
		
	
	
	
		
			Python
		
	
	
	
	
	
|  | from lnx.logicnode.lnx_nodes import * | ||
|  | 
 | ||
|  | class SeparateVectorNode(LnxLogicTreeNode): | ||
|  |     """Splits the given vector into X, Y and Z.""" | ||
|  |     bl_idname = 'LNSeparateVectorNode' | ||
|  |     bl_label = 'Separate XYZ' | ||
|  |     lnx_section = 'vector' | ||
|  |     lnx_version = 1 | ||
|  | 
 | ||
|  |     def lnx_init(self, context): | ||
|  |         self.add_input('LnxVectorSocket', 'Vector') | ||
|  | 
 | ||
|  |         self.add_output('LnxFloatSocket', 'X') | ||
|  |         self.add_output('LnxFloatSocket', 'Y') | ||
|  |         self.add_output('LnxFloatSocket', 'Z') |