This commit is contained in:
justumen
2025-02-09 15:44:04 +01:00
parent d762702471
commit a0bf04c7d6
46 changed files with 1817 additions and 581 deletions

25
note_text.py Normal file
View File

@@ -0,0 +1,25 @@
class Everything(str):
def __ne__(self, __value: object) -> bool:
return False
class DisplayNote:
@classmethod
def INPUT_TYPES(s):
return {
"required": {
"any": (Everything("*"), {"forceInput": True}), # Accept any input
"display_text": ("STRING", {
"multiline": True, # Allow multiline text
"default": "" # Default text
}),
}
}
RETURN_TYPES = (Everything("*"),) # Return same type as input
RETURN_NAMES = ("any",) # Return same type as input
FUNCTION = "display_text_pass"
CATEGORY = "Bjornulf"
def display_text_pass(self, any, display_text):
# Simply pass through the input
return (any,)