extra_only / main_ui_only ScriptPostprocessing #16374
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 selectablemy guess is doing some refactoring some logical change and so it got lost
this PR as it back by changing how a ScriptPostprocessing
is filtered out by adding 2 new attribute to
ScriptPostprocessing,
ScriptPostprocessing.extra_onlyand
ScriptPostprocessing.main_ui_onlywhen set to
Ture`, the script will only show ther specified tabexample
Simple Upscale
now has the.main_ui_only
set to trueand 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 typesthe 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 tabsScreenshots/videos:
Checklist: