19 lines
680 B
Python
19 lines
680 B
Python
import bpy
|
|
from bpy.props import *
|
|
from bpy.types import Node, NodeSocket
|
|
from arm.logicnode.arm_nodes import *
|
|
|
|
class SetMaterialRgbParamNode(ArmLogicTreeNode):
|
|
'''Set material rgb param node'''
|
|
bl_idname = 'LNSetMaterialRgbParamNode'
|
|
bl_label = 'Set Material RGB Param'
|
|
bl_icon = 'NONE'
|
|
|
|
def init(self, context):
|
|
self.add_input('ArmNodeSocketAction', 'In')
|
|
self.add_input('NodeSocketShader', 'Material')
|
|
self.add_input('NodeSocketString', 'Node')
|
|
self.add_input('NodeSocketColor', 'Color')
|
|
self.add_output('ArmNodeSocketAction', 'Out')
|
|
|
|
add_node(SetMaterialRgbParamNode, category=MODULE_AS_CATEGORY, section='params')
|