diff options
author | EllangoK <karun.ellango7@gmail.com> | 2023-01-26 05:18:41 +0000 |
---|---|---|
committer | EllangoK <karun.ellango7@gmail.com> | 2023-01-26 05:18:41 +0000 |
commit | 4d634dc592ffdbd4ebb2f1acfb9a63f5e26e4deb (patch) | |
tree | e2b9ff4c9a64297c7e9a51da5d6ab68c958f439a /scripts/xyz_grid.py | |
parent | e57b5f7c5560c49fbaf05e6bea326478222cb3e6 (diff) | |
download | stable-diffusion-webui-gfx803-4d634dc592ffdbd4ebb2f1acfb9a63f5e26e4deb.tar.gz stable-diffusion-webui-gfx803-4d634dc592ffdbd4ebb2f1acfb9a63f5e26e4deb.tar.bz2 stable-diffusion-webui-gfx803-4d634dc592ffdbd4ebb2f1acfb9a63f5e26e4deb.zip |
adds components to infotext_fields
allows for loading script params
Diffstat (limited to 'scripts/xyz_grid.py')
-rw-r--r-- | scripts/xyz_grid.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/xyz_grid.py b/scripts/xyz_grid.py index 828c2d12..f3378686 100644 --- a/scripts/xyz_grid.py +++ b/scripts/xyz_grid.py @@ -383,6 +383,15 @@ class Script(scripts.Script): y_type.change(fn=select_axis, inputs=[y_type], outputs=[fill_y_button])
z_type.change(fn=select_axis, inputs=[z_type], outputs=[fill_z_button])
+ self.infotext_fields = (
+ (x_type, "X Type"),
+ (x_values, "X Values"),
+ (y_type, "Y Type"),
+ (y_values, "Y Values"),
+ (z_type, "Z Type"),
+ (z_values, "Z Values"),
+ )
+
return [x_type, x_values, y_type, y_values, z_type, z_values, draw_legend, include_lone_images, include_sub_grids, no_fixed_seeds]
def run(self, p, x_type, x_values, y_type, y_values, z_type, z_values, draw_legend, include_lone_images, include_sub_grids, no_fixed_seeds):
@@ -541,6 +550,7 @@ class Script(scripts.Script): if grid_infotext[0] is None:
pc.extra_generation_params = copy(pc.extra_generation_params)
+ pc.extra_generation_params['Script'] = self.title()
if x_opt.label != 'Nothing':
pc.extra_generation_params["X Type"] = x_opt.label
|