16 lines
462 B
Python
16 lines
462 B
Python
import bpy
|
|
from bpy.props import *
|
|
from bpy.types import Node, NodeSocket
|
|
from arm.logicnode.arm_nodes import *
|
|
|
|
class GetNameNode(ArmLogicTreeNode):
|
|
'''Get name node'''
|
|
bl_idname = 'LNGetNameNode'
|
|
bl_label = 'Get Name'
|
|
bl_icon = 'NONE'
|
|
|
|
def init(self, context):
|
|
self.inputs.new('ArmNodeSocketObject', 'Object')
|
|
self.outputs.new('NodeSocketString', 'Name')
|
|
|
|
add_node(GetNameNode, category=MODULE_AS_CATEGORY, section='props')
|