How to use scripts - stassius/StableHoudini GitHub Wiki

What are scripts?

Scripts are short code snippets that hijacks into the Stable Diffusion pipeline and can change the default behaviour. In Automatic1111 webui you can choose them from Dropdown lists in both text2image and image2image tabs.

image

How to install a script?

Go to A1111 webui, Extensions/Available tab. Press the "Load from" button. It will show you a huge list of available extensions. Tick "script" filter if it's off. Now search for the script you want to install, press the "Install" button next to it.

image

After installation is finished go to the "Installed" tab and press "Apply and restart UI" button.

image

How to use scripts from Houdini?

Put down an SD Script node. There is a dropdown list with available script descriptors. Most of the scripts except from Alternative image2image test should be installed first in Automatic1111 in order to work. Choose a script you have already installed in Automatic1111 and the node will be filled with parameters of this script. Note that if you choose another script from the list, it will erase all the parameters, so be careful.

https://github.com/stassius/StableHoudini/assets/35260274/6ef9cb64-0791-4e43-bf8a-54b2af4ab176

After that you can append SD Dream node and it will automatically use the script parameters from the previous node. They are passed through the attributes. Only one script could be used at a time. If the script is not installed or not compartible with the current mode, it will be skipped and the warning will be shown in Houdini console.

How to add a new script?

If you have a script you want to add, send me a message. Or you can do it yourself, as script descriptor is just a JSON-file located in /hda/Presets folder. You can compose one by yourself, but it can be tricky, you need to know the exact number and naming of parameters of the script.