LNXSDK/leenkx/blender/lnx/logicnode/object/LN_get_object_name.py

14 lines
377 B
Python
Raw Normal View History

2025-01-22 16:18:30 +01:00
from lnx.logicnode.lnx_nodes import *
class GetNameNode(LnxLogicTreeNode):
"""Returns the name of the given object."""
bl_idname = 'LNGetNameNode'
bl_label = 'Get Object Name'
lnx_section = 'props'
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxNodeSocketObject', 'Object')
self.add_output('LnxStringSocket', 'Name')