18 lines
452 B
Python
18 lines
452 B
Python
from arm.logicnode.arm_nodes import *
|
|
|
|
class TraitNode(ArmLogicTreeNode):
|
|
"""Trait node"""
|
|
bl_idname = 'LNTraitNode'
|
|
bl_label = 'Trait'
|
|
bl_icon = 'NONE'
|
|
|
|
property0: StringProperty(name='', default='')
|
|
|
|
def init(self, context):
|
|
self.add_output('NodeSocketShader', 'Trait', is_var=True)
|
|
|
|
def draw_buttons(self, context, layout):
|
|
layout.prop(self, 'property0')
|
|
|
|
add_node(TraitNode, category=MODULE_AS_CATEGORY)
|