2017-04-08 20:05:35 +02:00
|
|
|
import bpy
|
|
|
|
from bpy.props import *
|
|
|
|
from bpy.types import Node, NodeSocket
|
|
|
|
from arm.logicnode.arm_nodes import *
|
|
|
|
|
|
|
|
class GetMaterialNode(Node, ArmLogicTreeNode):
|
|
|
|
'''Get material node'''
|
|
|
|
bl_idname = 'LNGetMaterialNode'
|
|
|
|
bl_label = 'Get Material'
|
2020-08-07 19:05:48 +02:00
|
|
|
bl_icon = 'NONE'
|
2017-04-08 20:05:35 +02:00
|
|
|
|
|
|
|
def init(self, context):
|
|
|
|
self.inputs.new('ArmNodeSocketObject', 'Object')
|
|
|
|
self.outputs.new('NodeSocketShader', 'Material')
|
|
|
|
|
2020-09-08 17:03:24 +02:00
|
|
|
add_node(GetMaterialNode, category=MODULE_AS_CATEGORY)
|