Skip to content

Commit d4f5e88

Browse files
committed
better tooltips and naming
1 parent 0ab8e1e commit d4f5e88

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

raffle.py

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,29 +22,28 @@ def INPUT_TYPES(s):
2222
"taglists_must_include": ("STRING", {
2323
"multiline": True,
2424
"default": "",
25-
"tooltip": "Drastically reduces the pool of available taglists. Only taglists containing ALL these tags will be considered for selection. Use sparingly as this can quickly limit options."
25+
"tooltip": "Only selects taglists that contain ALL of these tags. WARNING: Each tag added here severely reduces the available pool of taglists. Check the 'Debug info' output to see how many taglists remain available."
2626
}),
2727
"negative_prompt": ("STRING", {
2828
"multiline": True,
2929
"forceInput": True,
3030
"default": "",
31-
"tooltip": "Filters individual tags from the selected taglist (doesn't exclude entire taglists). Tags listed here won't appear in the 'Filtered tags' output."
31+
"tooltip": "Removes specific tags from the final output without affecting taglist selection. Tags listed here will be filtered out after a taglist is chosen, making this safer to use than 'exclude_taglists_containing'."
3232
}),
33-
"negative_prompt_2": ("STRING", {
33+
"filter_out_tags": ("STRING", {
3434
"multiline": True,
3535
"default": "monochrome, greyscale",
36-
"tooltip": "Additional tags to filter from the final output. Combined with negative_prompt tags to avoid having to put all filtering tags in your main negative prompt."
36+
"tooltip": "Additional tags to filter out from the final output. Use this to exclude more tags without needing to modify your main negative prompt."
3737
}),
3838
"exclude_taglists_containing": ("STRING", {
3939
"multiline": True,
40-
"default": "comic, 4koma, multiple_girls, multiple_boys, multiple_views, reference_sheet, 2girls, 3girls, 4girls, 5girls, 6+girls, 2boys, 3boys, 4boys, 5boys, 6+boys, gangbang, furry, obese, yaoi, yuri, otoko_no_ko, strap-on, futa_with_female, futa_without_pussy, implied_futanari, futanari, diaper, fart, pee, peeing, scat, guro, vore, horse_penis, prolapse, anal_prolapse",
41-
"tooltip": "Eliminates entire taglists containing any of these tags from the selection pool. Use for tags that make the whole taglist unusable rather than just removing individual tags."
40+
"default": "comic, 4koma, multiple_girls, multiple_boys, multiple_views, reference_sheet, 2girls, 3girls, 4girls, 5girls, 6+girls, 2boys, 3boys, 4boys, 5boys, 6+boys, gangbang, furry, yaoi, yuri, otoko_no_ko, strap-on, futa_with_female, futa_without_pussy, implied_futanari, futanari, diaper, fart, scat, guro, vore, horse_penis, prolapse, anal_prolapse, pee, peeing, pee puddle, pee stain",
41+
"tooltip": "If ANY of these tags appear in the taglist, the entire taglist is removed from the pool of available taglists. Use with caution as each tag listed here can significantly reduce options. For removing individual tags without reducing the pool, use 'filter_out_tags' instead."
4242
}),
43-
# Replace all individual category booleans with a single text field for excluded categories
44-
"exclude_categories": ("STRING", {
43+
"exclude_tag_categories": ("STRING", {
4544
"multiline": True,
4645
"default": "clothes_and_accessories, female_physical_descriptors, named_garment_exposure, specific_garment_interactions, speech_and_text, standard_physical_descriptors, metadata_and_attribution, intentional_design_exposure, two_handed_character_items, holding_large_items, content_censorship_methods",
47-
"tooltip": "Enter category names to exclude, separated by commas. The complete list of available categories can be seen in the 'Debug info' output."
46+
"tooltip": "Exclude entire categories of tags from the final output. Each category contains related tags (e.g., 'poses' contains all pose-related tags). View the complete category list and their tags in the 'Debug info' output. Separate multiple categories with commas."
4847
})
4948
},
5049
}
@@ -143,9 +142,9 @@ def normalize_tags(self, tag_string):
143142
]
144143

145144
def process_tags(self, exclude_taglists_containing, taglists_must_include, seed,
146-
negative_prompt="", negative_prompt_2="",
145+
negative_prompt="", filter_out_tags="",
147146
use_general=True, use_questionable=False, use_sensitive=False, use_explicit=False,
148-
exclude_categories=""):
147+
exclude_tag_categories=""):
149148

150149
# Add directory existence check
151150
extension_path = os.path.normpath(os.path.dirname(__file__))
@@ -207,8 +206,8 @@ def process_tags(self, exclude_taglists_containing, taglists_must_include, seed,
207206

208207
# Process excluded categories
209208
excluded_categories = []
210-
if exclude_categories.strip():
211-
excluded_categories = self.normalize_tags(exclude_categories)
209+
if exclude_tag_categories.strip():
210+
excluded_categories = self.normalize_tags(exclude_tag_categories)
212211

213212
# Check if all excluded categories are valid
214213
invalid_categories = [c for c in excluded_categories if c not in all_categories]
@@ -301,8 +300,8 @@ def process_tags(self, exclude_taglists_containing, taglists_must_include, seed,
301300
filtered_tags = [tag for tag in filtered_tags if tag not in negative_tags]
302301

303302
# Process negative prompt 2 tags
304-
negative_tags_2 = set(self.normalize_tags(negative_prompt_2))
305-
filtered_tags = [tag for tag in filtered_tags if tag not in negative_tags_2]
303+
filter_out_tags_set = set(self.normalize_tags(filter_out_tags))
304+
filtered_tags = [tag for tag in filtered_tags if tag not in filter_out_tags_set]
306305

307306
debug_info = f"Pool of Taglists size: {len(all_valid_taglists)}\n\n{categories_debug}"
308307
return_values = (

0 commit comments

Comments
 (0)