-
Notifications
You must be signed in to change notification settings - Fork 55
Expand file tree
/
Copy pathnote_text.py
More file actions
28 lines (25 loc) · 858 Bytes
/
note_text.py
File metadata and controls
28 lines (25 loc) · 858 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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
if any is None:
return (None,)
else:
return (any,)