Skip to content
yownas edited this page May 16, 2023 · 4 revisions

Welcome to the sd-webui-lua wiki!

Here I will try to explain the commands and gives ideas on how to use them.

UI

lua_layout

The big text box in the upper left is where you write/paste your Lua code.

To the right are the input-textbox, buttons and two output-boxes. The input-textbox is a simple way to get input into you script. Anything written here will be prepended as input="[[<your text>]]" before your script is executed. It is optional to use it. The Gallery is where you can send images and the Output where you can write text from your script.

The three buttons above the Gallery-box are:

  • Run - Execute the Lua code.
  • Reset - Clear the Gallery and the Output box and restart Lua, any variables you might have set will be removed. (Does not clear the Code-box.)
  • Refresh - Reload the Gallery and the Output box in case you have got an error. (Does not run Lua or clear anything.)

And at the bottom you have Lua Extras... which contain links and short explanation of the functions.

Clone this wiki locally