From c2ad14ab37358e3c50e9f1053b96929d903bb159 Mon Sep 17 00:00:00 2001 From: AUTOMATIC1111 <16777216c@gmail.com> Date: Sat, 22 Oct 2022 13:19:41 +0300 Subject: [PATCH] Updated Extensions (markdown) --- Extensions.md | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Extensions.md b/Extensions.md index 638a0bc..44f441c 100644 --- a/Extensions.md +++ b/Extensions.md @@ -1,4 +1,4 @@ -# Using extensions +# General info Extensions are a more convenient form of user scripts. @@ -10,12 +10,10 @@ git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui-aesthetic-grad This installs an extension from `https://github.com/AUTOMATIC1111/stable-diffusion-webui-aesthetic-gradients` into the `extensions/aesthetic-gradients` directory. -# Developing extensions +Alternatively you can just copy-paste a directory. -Web ui interacts with installed extensions in the following way: -- extension's scripts in the `scripts` directory are executed as if they were just usual user scripts, except: - - `sys.path` is extended to include the extension directory, so you can import anything in it without worrying - - you can use `scripts.basedir()` to get the current extension's directory (since user can name it anything he wants) -- extension's javascript files in the `javascript` directory are added to the page -- extension's `style.css` file is added to the page +# Extensions + +## Aesthetic Gradients +https://github.com/AUTOMATIC1111/stable-diffusion-webui-aesthetic-gradients