29 Commits
Author SHA1 Message Date
ChrisColeTech 65fb16237b Add randomize mode to Simple Number Counter and bump to 1.0.14 2026-09-09 20:12:51 -04:00
ChrisColeTech 81bafd5464 Remove reset_bool's label_on/label_off - it silently swaps the widget type
Traced in ComfyUI_frontend's WidgetToggleSwitch.vue: a BOOLEAN input with
on/off labels set renders as a ToggleGroup (two side-by-side buttons), not
a real switch. Without labels it renders as an actual ToggleSwitch (the
pill-shaped slider). Removing the labels so reset_bool renders as a real
switch again, matching Comfy-GGUF's keep_loaded (which never had labels).

Bump version from 1.0.12 to 1.0.13
2026-08-24 11:58:24 -04:00
ChrisColeTech 4f5017e1a0 Move reset_bool into required, first widget, so it's not stuck at the bottom
Widget render order follows INPUT_TYPES dict order, required fields
first then optional. reset_bool sat alone in "optional", which always
trails every required field regardless of listing order - so it always
rendered last no matter what. Moved into "required" and placed first,
matching Get Image/Video File By Index's own reset_bool convention in
the sibling ComfyUI-Get-Random-File repo.

Bump version from 1.0.11 to 1.0.12
2026-08-24 11:12:04 -04:00
ChrisColeTech 18b793aee0 Add SEARCH_ALIASES to all four nodes so they show up in text search
ComfyUI's node search only indexes name/display_name/search_aliases
(comfy_frontend nodeSearchService.ts) - never input/output types. None of
these nodes declared SEARCH_ALIASES, so a keyword search (e.g. "counter",
"read line") would only match if the word happened to be in the display
title verbatim.

Bump version from 1.0.10 to 1.0.11
2026-08-24 11:03:57 -04:00
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
ChrisColeTech 40b6e61298 Fix Simple Number Counter reset not returning to start, and dead decrement mode
reset_bool set counter back to `start`, but execution fell through into
the increment/decrement branch immediately after regardless, so the
returned value on a reset call was always start + step, never start
itself - reset appeared to do nothing. Made reset an elif so it short-
circuits the step logic for that call.

Also: `elif mode == 'deccrement':` (typo, extra c) never matched the real
mode value "decrement", so decrement mode silently did nothing - fixed to
match. And number_type-vs-mode was swapped in the initial counter cast
(`int(start) if mode == 'integer' else start` - mode is never "integer",
that's number_type), so a fresh integer counter's very first value was
never actually cast to int.

Bump version from 1.0.8 to 1.0.9
2026-08-24 10:21:20 -04:00
ChrisColeTech 60ddbc86a7 Bump version from 1.0.7 to 1.0.8 2026-08-18 17:16:06 -04:00
ChrisColeTech 19f26ce0dc handle index out of bounds errors 2025-03-11 20:07:21 -04:00
ChrisColeTech e5b2ab1515 Added text file line reader to process prompts sequentially from a txt file
Added text file line reader to process prompts sequentially from a txt file
2025-03-11 19:59:51 -04:00
ChrisColeTech b99fcda694 added web dir 2024-09-01 22:30:11 -04:00
ChrisColeTech d074afcab7 hold off on context menu 2024-09-01 22:03:09 -04:00
ChrisColeTech f76e7ee2e0 no message 2024-09-01 21:49:06 -04:00
ChrisColeTech b04b9b0768 no message 2024-09-01 21:48:13 -04:00
ChrisColeTech 44d82d177b no message 2024-09-01 21:47:42 -04:00
ChrisColeTech 630321a71d added context menu 2024-09-01 21:28:19 -04:00
ChrisColeTech b2c924d1df Merge pull request #3 from Geeknasty/main
Add support for environment variables in file paths for DirectoryFileCounter and TextFileLineCounter
2024-08-27 06:10:58 -04:00
Geeknasty 9a830cd836 feat: Expand environment variables in file paths for DirectoryFileCounter and TextFileLineCounter
This update enhances the `DirectoryFileCounter` and `TextFileLineCounter` classes by expanding environment variables in file paths using `os.path.expandvars()`. This change allows these classes to correctly handle paths that include environment variables, improving their flexibility and usability in various environments.

- **DirectoryFileCounter**: The `execute_file_counter` method now expands environment variables in the `directory_path` before performing directory operations.
- **TextFileLineCounter**: The `execute_line_counter` method now expands environment variables in the `file_path` before reading the file.

This fix ensures that paths containing variables such as `%userprofile%` are properly resolved, enabling more dynamic and environment-aware file handling.
2024-08-15 23:24:11 -04:00
ChrisColeTech e7db7fc8f4 Update README.md 2024-08-15 22:44:30 -04:00
ChrisColeTech d21aba3a57 Update pyproject.toml 2024-08-15 22:37:15 -04:00
ChrisColeTech e58a69ecf8 Update README.md 2024-08-15 21:47:11 -04:00
ChrisColeTech 16d19b546e added preview images 2024-08-15 21:41:47 -04:00
ChrisColeTech 2a5c04e0a0 Create pyproject.toml 2024-08-15 19:41:34 -04:00
ChrisColeTech 8ce356c615 Merge pull request #2 from ComfyNodePRs/publish
Add Github Action for Publishing to Comfy Registry
2024-08-15 19:39:23 -04:00
ChrisColeTech 1736d1e9e3 Update __init__.py 2024-08-14 23:39:19 -04:00
ChrisColeTech da6f0c65c5 Update line_counter.py 2024-08-14 22:28:43 -04:00
snomiao c5f2f6ba86 chore(publish): Add Github Action for Publishing to Comfy Registry 2024-08-14 15:59:30 +00:00
ChrisColeTech 9e196c28b3 bug fixes 2024-08-14 03:27:30 -04:00
ChrisColeTech 9cb7801c10 initial commit 2024-08-14 01:00:38 -04:00
ChrisColeTech 003ddc3fb4 Initial commit 2024-08-14 01:00:11 -04:00