2018-06-12 13:50:27 +02:00
|
|
|
import bpy
|
|
|
|
from bpy.props import *
|
|
|
|
from bpy.types import Node, NodeSocket
|
|
|
|
from arm.logicnode.arm_nodes import *
|
|
|
|
|
2020-09-08 21:16:20 +02:00
|
|
|
class SetMaterialImageParamNode(ArmLogicTreeNode):
|
2020-09-08 23:14:51 +02:00
|
|
|
"""Set material image param node"""
|
2018-06-12 13:50:27 +02:00
|
|
|
bl_idname = 'LNSetMaterialImageParamNode'
|
|
|
|
bl_label = 'Set Material Image Param'
|
2020-08-07 18:58:19 +02:00
|
|
|
bl_icon = 'NONE'
|
2018-06-12 13:50:27 +02:00
|
|
|
|
|
|
|
def init(self, context):
|
2020-09-08 21:49:02 +02:00
|
|
|
self.add_input('ArmNodeSocketAction', 'In')
|
|
|
|
self.add_input('NodeSocketShader', 'Material')
|
|
|
|
self.add_input('NodeSocketString', 'Node')
|
|
|
|
self.add_input('NodeSocketString', 'Image')
|
|
|
|
self.add_output('ArmNodeSocketAction', 'Out')
|
2018-06-12 13:50:27 +02:00
|
|
|
|
2020-09-08 17:03:24 +02:00
|
|
|
add_node(SetMaterialImageParamNode, category=MODULE_AS_CATEGORY, section='params')
|