armory/blender/arm/logicnode/string/LN_sub_string.py

16 lines
496 B
Python
Raw Normal View History

2019-09-29 20:52:00 +02:00
from arm.logicnode.arm_nodes import *
class SubStringNode(ArmLogicTreeNode):
2020-10-05 19:55:56 +02:00
"""Returns a part of the given string."""
2019-09-29 20:52:00 +02:00
bl_idname = 'LNSubStringNode'
bl_label = 'Sub String'
arm_version = 1
2019-09-29 20:52:00 +02:00
def init(self, context):
super(SubStringNode, self).init(context)
2020-09-28 16:21:18 +02:00
self.add_input('NodeSocketString', 'String In')
2020-09-08 21:49:02 +02:00
self.add_input('NodeSocketInt', 'Start')
self.add_input('NodeSocketInt', 'End')
2020-11-17 16:01:15 +01:00
2020-09-28 16:21:18 +02:00
self.add_output('NodeSocketString', 'String Out')