armory/blender/arm/logicnode/value_length_string.py
2020-08-07 14:05:48 -03:00

17 lines
461 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 = 'NONE'
def init(self, context):
self.outputs.new('NodeSocketInt', 'length')
self.inputs.new('NodeSocketString', 'String')
add_node(LengthStringNode, category='Value')