Nodes/Comfy Text Stats/Text -> Line Context Counter
ComfyUI Node

Text -> Line Context Counter

A ComfyUI node in Text/Utils with 8 inputs and 6 outputs.

By scofano·Created 10 months ago·Updated 3 months ago· 1
Text -> Line Context Counter
    • counter
    • current_line_text
    • previous_lines_text
    • next_lines_text
    • combined_context_text
    • all_lines_text
    text
    set_counter1
    previous_lines1
    next_lines1
    current_prefixCurrent line: {line}
    previous_prefixPrevious {count} lines: {lines}
    next_prefixNext {count} lines: {lines}
    all_lines_prefixAll the content:
    CategoryText/Utils

    Inputs (8)

    NameTypeDefaultDescription
    textSTRING
    set_counterINT1
    previous_linesINT1
    next_linesINT1
    current_prefixSTRINGCurrent line: {line}
    previous_prefixSTRINGPrevious {count} lines: {lines}
    next_prefixSTRINGNext {count} lines: {lines}
    all_lines_prefixSTRINGAll the content:

    Outputs (6)

    NameTypeDescription
    counterINT
    current_line_textSTRING
    previous_lines_textSTRING
    next_lines_textSTRING
    combined_context_textSTRING
    all_lines_textSTRING