13 lines
405 B
Python
13 lines
405 B
Python
from arm.logicnode.arm_nodes import *
|
|
|
|
class GetTraitNode(ArmLogicTreeNode):
|
|
"""Get trait node"""
|
|
bl_idname = 'LNGetTraitNode'
|
|
bl_label = 'Get Trait'
|
|
|
|
def init(self, context):
|
|
self.add_input('ArmNodeSocketObject', 'Object')
|
|
self.add_input('NodeSocketString', 'Name')
|
|
self.add_output('NodeSocketShader', 'Trait')
|
|
|
|
add_node(GetTraitNode, category=MODULE_AS_CATEGORY)
|