LNXSDK/leenkx/blender/lnx/logicnode/math/LN_matrix_math.py

23 lines
653 B
Python
Raw Normal View History

2025-01-22 16:18:30 +01:00
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')