LNXSDK/leenkx/blender/lnx/logicnode/trait/LN_get_trait_name.py
2025-01-22 16:18:30 +01:00

14 lines
431 B
Python

from lnx.logicnode.lnx_nodes import *
class GetTraitNameNode(LnxLogicTreeNode):
"""Returns the name and the class type of the given trait."""
bl_idname = 'LNGetTraitNameNode'
bl_label = 'Get Trait Name'
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxDynamicSocket', 'Trait')
self.add_output('LnxStringSocket', 'Name')
self.add_output('LnxStringSocket', 'Class Type')