Files
LNXSDK/leenkx/blender/lnx/logicnode/string/LN_split_string.py

18 lines
562 B
Python

from lnx.logicnode.lnx_nodes import *
class SplitStringNode(LnxLogicTreeNode):
"""Splits the given string."""
bl_idname = 'LNSplitStringNode'
bl_label = 'Split String'
lnx_version = 2
def lnx_init(self, context):
self.add_input('LnxStringSocket', 'String')
self.add_input('LnxStringSocket', 'Split')
self.add_output('LnxNodeSocketArray', 'Array')
self.add_output('LnxIntSocket', 'Length')
def get_replacement_node(self, node_tree: bpy.types.NodeTree):
return NodeReplacement.Identity(self)