ChrisColeTech f2c2ffa586 Make reset_bool a real toggle switch, not a NUMBER socket
reset_bool was typed NUMBER, which has no native widget - it rendered as
a bare (usually disconnected) socket, not something you could click.
Changed to BOOLEAN with label_on="Reset"/label_off="Off" so it renders as
an actual switch, matching ComfyUI-Get-Random-File's reset_bool convention.

Simplified the reset check from `round(reset_bool) >= 1` (needed when the
value could be an arbitrary wired number) to a plain `if reset_bool:` now
that it's a real bool, and the function default to reset_bool=False to
match. Note: any existing workflow with a NUMBER output wired into this
socket will show as disconnected on next load - this input was always
meant to be a toggle, not a numeric signal.

Bump version from 1.0.9 to 1.0.10
2026-08-24 10:45:40 -04:00
2024-08-15 21:41:47 -04:00
2024-09-01 22:30:11 -04:00
2024-09-01 22:30:11 -04:00
2024-08-14 01:00:11 -04:00
2024-08-14 01:00:11 -04:00
2024-08-15 22:44:30 -04:00

ComfyUI Line Counter 🎯

Build Status

🚀 Overview

Welcome to ComfyUI Line Counter! This custom node package for ComfyUI is designed to streamline your workflow with powerful file-counting capabilities.

🔥 Features

  • 🎯 Text File Line Counter:
    • Count the number of lines in any text file with ease. Perfect for analyzing logs, scripts, and more.
  • 🎯 Directory File Counter:
    • Count the number of files in a directory. Ideal for managing and auditing file structures quickly.

📸 Preview

🎯 Text File Line Counter: Preview Image

🎯 Directory File Counter: Preview Image

📦 Installation

Method 1: Clone Repository into custom_nodes Folder

  1. Clone the Repository:

    Open Command Prompt or PowerShell and run the following command to clone the repository into the custom_nodes directory of your ComfyUI setup:

    git clone https://github.com/ChrisColeTech/ComfyUI-Line-counter.git <path\to\comfyui\custom_nodes>

    Replace path\to\comfyui with the actual path to your ComfyUI installation

  2. Restart ComfyUI:

    Restart your ComfyUI server to load the new nodes.

Method 2: Install via ComfyUI Manager

  1. Open ComfyUI Manager:

    Launch the ComfyUI Manager application from your Start menu or desktop shortcut.

  2. Search for **ComfyUI-Line-counter**:

    In the ComfyUI Manager, go to the Node Manager and search for ComfyUI-Line-counter.

  3. Install the Nodes:

    Click on the Install button next to ComfyUI-Line-counter. The manager will handle the installation and setup process for you.

  4. Restart ComfyUI:

    After installation, restart your ComfyUI server to ensure that the new nodes are properly integrated.

🛠️ Usage

To get started with the ComfyUI Line Counter nodes, follow these steps:

  1. Add the Nodes: Drag and drop the Text File Line Counter and Directory File Counter nodes into your workflow.
  2. Configure: Set the necessary parameters like file paths and directories.

🤝 Contributing

We welcome contributions! If you have suggestions or find bugs, please create an issue or submit a pull request.

S
Description
No description provided
Readme MIT
231 KiB
Languages
JavaScript 50.6%
CSS 31.6%
Python 17.8%