armory/blender/arm/logicnode/string/LN_string_length.py
2020-09-24 19:49:21 -03:00

15 lines
454 B
Python

from arm.logicnode.arm_nodes import *
class LengthStringNode(ArmLogicTreeNode):
"""Use to get the length of a 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')
add_node(LengthStringNode, category=PKG_AS_CATEGORY)