armory/blender/arm/logicnode/value_length_string.py
2019-09-30 00:22:00 +05:30

16 lines
466 B
Python

import bpy
from bpy.props import *
from bpy.types import Node, NodeSocket
from arm.logicnode.arm_nodes import *
class LengthStringNode(Node, ArmLogicTreeNode):
'''String Length node'''
bl_idname = 'LNLengthStringNode'
bl_label = 'String Length'
bl_icon = 'CURVE_PATH'
def init(self, context):
self.outputs.new('NodeSocketInt', 'length')
self.inputs.new('NodeSocketString', 'String')
add_node(LengthStringNode, category='Value')