None of the nodes showed description text in ComfyUI because ComfyUI reads obj_class.DESCRIPTION when it builds node_info - it does not read the class docstring, which is what these nodes had. Every registered node now carries a one-line DESCRIPTION, kept to 29-67 characters so it fits the limited space in ComfyUI Manager and the node search results. Image Transform Pro's four-sentence description is shortened to match. Descriptions are derived from each node's existing docstring, or from the README for the five classes that had no docstring (ImageBlendPro, ColorMatchBlend and the three Boolean switch nodes). README also updated for the recent changes: the New Nodes table now lists the real "Rotate & Scale" category, the XY placement direction is documented on both nodes (positive X right, positive Y up), and the v2.2.0 changelog records the placement convention, the node outputs and the MP_ImageTransform internal name.
31 lines
863 B
Python
31 lines
863 B
Python
class TextNotes:
|
|
"""
|
|
Simple text notes node for adding comments and documentation to your workflow.
|
|
Does not affect the pipeline - just for organization.
|
|
"""
|
|
|
|
DESCRIPTION = "Workflow comments and notes. Does not affect the pipeline."
|
|
|
|
@classmethod
|
|
def INPUT_TYPES(cls):
|
|
return {
|
|
"required": {
|
|
"notes": ("STRING", {
|
|
"default": "Add your notes here...",
|
|
"multiline": True,
|
|
}),
|
|
},
|
|
"optional": {
|
|
"title": ("STRING", {"default": "Notes"}),
|
|
},
|
|
}
|
|
|
|
RETURN_TYPES = ()
|
|
FUNCTION = "do_nothing"
|
|
CATEGORY = "MachinePaintingNodes/Util"
|
|
OUTPUT_NODE = True
|
|
|
|
def do_nothing(self, notes, title="Notes"):
|
|
# This node does nothing - it's just for notes
|
|
return ()
|