xyzgrid with control tab

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2025-07-15 14:35:27 -04:00
parent a77975165c
commit cd84cfec11
18 changed files with 243 additions and 81 deletions
+9 -7
View File
@@ -45,13 +45,15 @@ class Script(scripts_manager.Script):
p.task_args[field] = val
return fun
xyz_classes = [v for k, v in sys.modules.items() if 'xyz_grid_classes' in k][0]
options = [
xyz_classes.AxisOption("[SLG] Layers", str, apply_task_args("skip_guidance_layers")),
]
for option in options:
if option not in xyz_classes.axis_options:
xyz_classes.axis_options.append(option)
xyz_classes = [v for k, v in sys.modules.items() if 'xyz_grid_classes' in k]
if xyz_classes and len(xyz_classes) > 0:
xyz_classes = xyz_classes[0]
options = [
xyz_classes.AxisOption("[SLG] Layers", str, apply_task_args("skip_guidance_layers")),
]
for option in options:
if option not in xyz_classes.axis_options:
xyz_classes.axis_options.append(option)
def run(self, p: processing.StableDiffusionProcessing, layers: str = '', scale: float = 1.0, start: float = 1.0, stop: float = 1.0): # pylint: disable=arguments-differ, unused-argument