Stable Diffusion - Shared Commands 

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > AI - Artificial Intelligence Commands > SD - Stable Diffusion AI > SD - Shared Commands > !SD - Modify Prompt >

 Stable Diffusion - Shared Commands 

SDL.Set Append / SDL.Sap and SDO.Set Append / SDO.Sap

Previous Top Next


MiniRobotLanguage (MRL)

 

SDL.Set Append and SDO.Set Append

If Result available

 

 

Intention

 

The SDL.Set Append command and its shorthand SDL.sap are designed to define an internal Append-Register, that will be permanently applied to each prompt until the Append-Register is cleared..

Before adding the Append, the command will internally remove all "," from the Append and the Positive-Prompt Register, that is set using SDL.Set Positive Prompt

 

This command is available in both the Stable Diffusion Local (SDL.spx) and Stable Diffusion Online (SDO.spx) suites. Each suite has its own internal register for storing the Append, and setting a Append in one suite does not influence the other.

 

 

SDL.Set Positive Prompt|Green wood

SDL.Set Append|fantasy landscape

' The final prompt will be 
' "Green wood,fantasy landscape"

ENR.

 

 

Syntax

 

 

SDL.Set Append[|P1]

SDL.Spx[|P1]

SDO.Set Append[|P1]

SDO.Spx[|P1]

 

 

Parameter Explanation

 

  P1: (Required) The Append that will be permanently applied to each prompt. If omitted or empty the Append-Register will be cleared.

 

 

 

 

Example

 

'***********************************

' SDL.-Sample for setting Append

'***********************************

SDL.Set Positive Prompt|Green wood

SDL.Set Append|fantasy landscape

' The final prompt will be "Green wood,fantasy landscape"

ENR.

 

'***********************************

' SDO.-Sample for setting Append

'***********************************

SDO.Set Append|science fiction

' All subsequent prompts will now be Appended with "science fiction,"

ENR.

 

 

 

 

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

See also: