2018-05-15 16:44:17 +02:00
|
|
|
from arm.logicnode.arm_nodes import *
|
|
|
|
|
2020-09-08 21:16:20 +02:00
|
|
|
class SetMaterialSlotNode(ArmLogicTreeNode):
|
2020-09-08 23:14:51 +02:00
|
|
|
"""Set material slot node"""
|
2018-05-15 16:44:17 +02:00
|
|
|
bl_idname = 'LNSetMaterialSlotNode'
|
|
|
|
bl_label = 'Set Material Slot'
|
|
|
|
|
|
|
|
def init(self, context):
|
2020-09-08 21:49:02 +02:00
|
|
|
self.add_input('ArmNodeSocketAction', 'In')
|
|
|
|
self.add_input('ArmNodeSocketObject', 'Object')
|
|
|
|
self.add_input('NodeSocketShader', 'Material')
|
|
|
|
self.add_input('NodeSocketInt', 'Slot')
|
|
|
|
self.add_output('ArmNodeSocketAction', 'Out')
|
2018-05-15 16:44:17 +02:00
|
|
|
|
2020-09-08 17:03:24 +02:00
|
|
|
add_node(SetMaterialSlotNode, category=MODULE_AS_CATEGORY)
|