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