forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
22
leenkx/blender/lnx/logicnode/math/LN_matrix_math.py
Normal file
22
leenkx/blender/lnx/logicnode/math/LN_matrix_math.py
Normal file
@ -0,0 +1,22 @@
|
||||
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')
|
Reference in New Issue
Block a user