Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extra_only / main_ui_only ScriptPostprocessing; fix Simple Upscale #16374

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

w-e-w
Copy link
Collaborator

@w-e-w w-e-w commented Aug 12, 2024

Description

fix Simple Upscale

mentioned by @light-and-ray in Discord for whatever reason the the main UI only script Simple Upscale was hidden and not selectable

my guess is doing some refactoring some logical change and so it got lost

this PR as it back by changing how a ScriptPostprocessingis filtered out by adding 2 new attribute toScriptPostprocessing, ScriptPostprocessing.extra_onlyandScriptPostprocessing.main_ui_onlywhen set toTure`, the script will only show ther specified tab

example
Simple Upscale now has the .main_ui_only set to true
and so will only work in main ui if added into opts.postprocessing_enable_in_main_ui

shared_items.postprocessing_scripts(filter_out_extra_only=False, filter_out_main_ui_only=False) now have filter options to filter out the two script types

the advantage of doing this way as opposed to adding a special case for Simple Upscale is that extensions if they so wish to can limit their use on specific tabs

Screenshots/videos:

image
image

Checklist:

@w-e-w w-e-w marked this pull request as draft August 12, 2024 22:04
add extra_only and main_ui_only attr to ScriptPostprocessing
a script with extra_only = True can only run on extra and not be used in main UI, vice versa
shared_items.postprocessing_scripts now have filter_out_main_ui_only and filter_out_extra_only args
@w-e-w w-e-w marked this pull request as ready for review August 12, 2024 22:53
@w-e-w w-e-w changed the title fix Simple Upscale extra_only / main_ui_only ScriptPostprocessing; fix Simple Upscale Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant