<< 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 |
MiniRobotLanguage (MRL)
SDL.Set Prefix and SDO.Set Prefix
If Result available
Intention
The SDL.Set Prefix command and its shorthand SDL.spx are designed to set a prefix that will be permanently applied to each prompt until the Prefix-Register is cleared..
Before adding the prefix, the command will internally remove all "," from the prefix 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 prefix, and setting a prefix in one suite does not influence the other.
SDL.Set Positive Prompt|Green wood
SDL.Set Prefix|fantasy landscape
' The final prompt will be
' "fantasy landscape,Green wood"
ENR.
Syntax
SDL.Set Prefix[|P1]
SDL.Spx[|P1]
SDO.Set Prefix[|P1]
SDO.Spx[|P1]
Parameter Explanation
P1: (Required) The prefix that will be permanently applied to each prompt. If omitted or empty the Prefix-Register will be cleared.
Example
'***********************************
' SDL.-Sample for setting prefix
'***********************************
SDL.Set Positive Prompt|Green wood
SDL.Set Prefix|fantasy landscape
' The final prompt will be "fantasy landscape,Green wood"
ENR.
'***********************************
' SDO.-Sample for setting prefix
'***********************************
SDO.Set Prefix|science fiction
' All subsequent prompts will now be prefixed with "science fiction,"
ENR.
Remarks
-
Limitations:
-
See also:
•