add endpoint
This commit is contained in:
@@ -253,10 +253,33 @@ class FFmpegBatchConvertNode:
|
||||
return candidate
|
||||
|
||||
|
||||
class DebugStringOutputNode:
|
||||
"""Workflow terminal output node for debugging string results."""
|
||||
|
||||
@classmethod
|
||||
def INPUT_TYPES(cls):
|
||||
return {
|
||||
"required": {
|
||||
"text": ("STRING", {"default": "", "multiline": True}),
|
||||
}
|
||||
}
|
||||
|
||||
RETURN_TYPES = ()
|
||||
FUNCTION = "run"
|
||||
OUTPUT_NODE = True
|
||||
CATEGORY = "dlliang14/debug"
|
||||
|
||||
def run(self, text: str):
|
||||
print(f"[DebugStringOutputNode]\n{text}")
|
||||
return ()
|
||||
|
||||
|
||||
NODE_CLASS_MAPPINGS = {
|
||||
"FFmpegBatchConvertNode": FFmpegBatchConvertNode,
|
||||
"DebugStringOutputNode": DebugStringOutputNode,
|
||||
}
|
||||
|
||||
NODE_DISPLAY_NAME_MAPPINGS = {
|
||||
"FFmpegBatchConvertNode": "FFmpeg Batch Convert (Video -> Audio)",
|
||||
"DebugStringOutputNode": "Debug String Output",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user