23 lines
		
	
	
		
			653 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			653 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from lnx.logicnode.lnx_nodes import *
 | |
| 
 | |
| class MatrixMathNode(LnxLogicTreeNode):
 | |
|     """Multiplies matrices."""
 | |
|     bl_idname = 'LNMatrixMathNode'
 | |
|     bl_label = 'Matrix Math'
 | |
|     lnx_section = 'matrix'
 | |
|     lnx_version = 1
 | |
| 
 | |
|     property0: HaxeEnumProperty(
 | |
|         'property0',
 | |
|         items = [('Multiply', 'Multiply', 'Multiply')],
 | |
|         name='', default='Multiply')
 | |
| 
 | |
|     def lnx_init(self, context):
 | |
|         self.add_input('LnxDynamicSocket', 'Matrix 1')
 | |
|         self.add_input('LnxDynamicSocket', 'Matrix 2')
 | |
| 
 | |
|         self.add_output('LnxDynamicSocket', 'Result')
 | |
| 
 | |
|     def draw_buttons(self, context, layout):
 | |
|         layout.prop(self, 'property0')
 |