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

18 lines
562 B
Python
Raw Normal View History

2025-01-22 16:18:30 +01:00
from lnx.logicnode.lnx_nodes import *
class SplitStringNode(LnxLogicTreeNode):
"""Splits the given string."""
bl_idname = 'LNSplitStringNode'
bl_label = 'Split String'
lnx_version = 2
2025-01-22 16:18:30 +01:00
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)