This commit is contained in:
justumen
2024-11-22 12:30:00 +01:00
parent 840e62d00c
commit 0673c134d5
46 changed files with 1629 additions and 410 deletions

23
text_to_anything.py Normal file
View File

@@ -0,0 +1,23 @@
class Everything(str):
def __ne__(self, __value: object) -> bool:
return False
class TextToAnything:
@classmethod
def INPUT_TYPES(s):
return {
"required": { "text": ("STRING",{"forceInput":True}) },
}
@classmethod
def VALIDATE_INPUTS(s, input_types):
return True
RETURN_TYPES = (Everything("*"),)
RETURN_NAMES = ("anything",)
FUNCTION = "text_to_any"
CATEGORY = "Bjornulf"
def text_to_any(self, text):
return (text,)