2017-04-08 20:05:35 +02:00
|
|
|
from arm.logicnode.arm_nodes import *
|
|
|
|
|
2020-09-08 21:16:20 +02:00
|
|
|
class MatrixMathNode(ArmLogicTreeNode):
|
2020-09-08 23:14:51 +02:00
|
|
|
"""Matrix math node"""
|
2017-04-08 20:05:35 +02:00
|
|
|
bl_idname = 'LNMatrixMathNode'
|
|
|
|
bl_label = 'Matrix Math'
|
2018-12-18 23:48:38 +01:00
|
|
|
property0: EnumProperty(
|
2017-04-08 20:05:35 +02:00
|
|
|
items = [('Multiply', 'Multiply', 'Multiply')],
|
|
|
|
name='', default='Multiply')
|
2020-09-08 17:03:24 +02:00
|
|
|
|
2017-04-08 20:05:35 +02:00
|
|
|
def init(self, context):
|
2020-09-08 21:49:02 +02:00
|
|
|
self.add_input('NodeSocketShader', 'Matrix')
|
|
|
|
self.add_input('NodeSocketShader', 'Matrix')
|
|
|
|
self.add_output('NodeSocketShader', 'Matrix')
|
2017-04-08 20:05:35 +02:00
|
|
|
|
|
|
|
def draw_buttons(self, context, layout):
|
|
|
|
layout.prop(self, 'property0')
|
|
|
|
|
2020-09-08 17:03:24 +02:00
|
|
|
add_node(MatrixMathNode, category=MODULE_AS_CATEGORY, section='matrix')
|