15 lines
460 B
Python
15 lines
460 B
Python
from arm.logicnode.arm_nodes import *
|
|
|
|
class GetNameNode(ArmLogicTreeNode):
|
|
"""Returns the name of the given object."""
|
|
bl_idname = 'LNGetNameNode'
|
|
bl_label = 'Get Object Name'
|
|
arm_version = 1
|
|
|
|
def init(self, context):
|
|
super(GetNameNode, self).init(context)
|
|
self.add_input('ArmNodeSocketObject', 'Object')
|
|
self.add_output('NodeSocketString', 'Name')
|
|
|
|
add_node(GetNameNode, category=PKG_AS_CATEGORY, section='props')
|