mirror of
https://github.com/justUmen/Bjornulf_custom_nodes.git
synced 2026-03-21 20:52:11 -03:00
0.57
This commit is contained in:
23
text_to_anything.py
Normal file
23
text_to_anything.py
Normal 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,)
|
||||
Reference in New Issue
Block a user