Update meyo_node_Functional.py

This commit is contained in:
Meeeyo
2025-04-29 12:15:58 +08:00
committed by GitHub
parent 1350e19d6e
commit 75f1c4cd3c
-36
View File
@@ -59,42 +59,6 @@ class SimpleRandomSeed:
return (f"Error: {str(e)}",)
#======整数参数
class SplitIntegers:
@classmethod
def INPUT_TYPES(cls):
return {
"required": {
"numbers": ("STRING", {"default": "2|3|4|5"}), # Input for the numbers separated by '|'
},
}
RETURN_TYPES = ("INT", "INT", "INT", "INT")
FUNCTION = "split_numbers"
CATEGORY = "Meeeyo/Functional"
DESCRIPTION = "如需更多帮助或商务需求(For tech and business support)+VX/WeChat: meeeyo"
def IS_CHANGED():
return float("NaN")
def split_numbers(self, numbers):
try:
parts = numbers.split('|')
result = []
for i in range(4):
if i < len(parts) and parts[i].strip():
try:
result.append(int(parts[i].strip()))
except ValueError:
result.append(None)
else:
result.append(None)
return tuple(result)
except Exception as e:
return (f"Error: {str(e)}", None, None, None)
#======选择参数diy
class SelectionParameter:
@classmethod