armory/blender/arm/logicnode/string/LN_string_length.py
2020-11-17 12:01:15 -03:00

14 lines
406 B
Python

from arm.logicnode.arm_nodes import *
class LengthStringNode(ArmLogicTreeNode):
"""Returns the length of the given string."""
bl_idname = 'LNLengthStringNode'
bl_label = 'String Length'
arm_version = 1
def init(self, context):
super(LengthStringNode, self).init(context)
self.add_output('NodeSocketInt', 'Length')
self.add_input('NodeSocketString', 'String')