π Better! Faster! Stronger!
This update introduces settings backups, smarter file naming, and robust pair management.
πΎ Settings Export & Import
Before: Grid settings were lost after refreshing the page. There was no way to save complex prompts or sampler lists.
After: Added "β¬οΈ Download JSON" and "π Open" buttons. You can now export your entire setup to a file and reload it instantly with the "Auto apply on Open" toggle.
π Smart Cell Saving
Before: Individual cells were saved as Sampler_Scheduler.png. Running the same grid again would simply overwrite your previous renders.
After: New unique_cell_filename logic using fnmatch. The script now checks for existing files and adds a counter (e.g., Sampler, Scheduler 1.png) so you never lose a good generation.
π Advanced Pair Management
Before: Custom pairs in Batch Mode were processed as-is. The list could become messy with duplicates and random order.
After: Pairs are now normalized: spaces are trimmed, duplicates are removed (case-insensitive), and the list is automatically sorted alphabetically.
π·οΈ Filename Formatting
Before: Filenames for cells used a simple underscore separator (Sampler_Scheduler).
After: Switched to a cleaner comma-space format (Sampler, Scheduler) for both filenames and logs, making them more readable and consistent.
π§© Under the Hood
Before: Basic imports and simple UI callbacks using inline lambdas.
After: Added json and fnmatch libraries. Replaced brittle logic with structured functions like add_pair_normalized and parse_pairs for better stability.
π Summary. Before / After
Settings persistence: Manual entry only β JSON Export & Import
Overwrite protection: None (files overwritten) β Unique names with auto-increment
Pair organization: Unsorted list β Cleaned & Alphabetical
Filename separator: Underscore (_) β Clean comma-space (, )
UI Layout: Basic fields β New "Config & Presets" accordion
Code Logic: Inline lambdas β Modular parsing functions
Grids are now more manageable, your renders are safe from overwriting, and the new preset system saves you from re-typing prompts every session. Cleaner, smarter, and more reliable.