mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 01:04:32 +02:00
xyzgrid with control tab
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user