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

13 lines
356 B
Python

from lnx.logicnode.lnx_nodes import *
class LengthStringNode(LnxLogicTreeNode):
"""Returns the length of the given string."""
bl_idname = 'LNLengthStringNode'
bl_label = 'String Length'
lnx_version = 1
def lnx_init(self, context):
self.add_output('LnxIntSocket', 'Length')
self.add_input('LnxStringSocket', 'String')