MCPcopy Index your code
hub / github.com/vladmandic/sdnext / show

Method show

modules/scripts_manager.py:79–87  ·  view source on GitHub ↗

is_img2img is True if this function is called for the img2img interface, and False otherwise This function should return: - False if the script should not be shown in UI at all - True if the script should be shown in UI if it's selected in the scripts dropdown

(self, is_img2img)

Source from the content-addressed store, hash-verified

77 pass # pylint: disable=unnecessary-pass
78
79 def show(self, is_img2img) -> bool | AlwaysVisible: # pylint: disable=unused-argument
80 """
81 is_img2img is True if this function is called for the img2img interface, and False otherwise
82 This function should return:
83 - False if the script should not be shown in UI at all
84 - True if the script should be shown in UI if it's selected in the scripts dropdown
85 - script.AlwaysVisible if the script should be shown in UI at all times
86 """
87 return True
88
89 def run(self, p: StableDiffusionProcessing, *args):
90 """

Callers 2

devices.pyFile · 0.45
add_scriptMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected