OK, so I’ve been having a great time playing with the image generator, and am struggling with a process to permanently add variables.
I can build a bunch of variables in Scratchpad using lists and curly brackets, and then use them in my prompts to create some variation. A simple example is to use a list of shirt colors, call a variable like [HUE1] and change my subject’s outfit. That works great. I’ve gotten dynamic odds to work, and been able to make some dependent sub-choices (i.e., if HUE1 is white, then HUE2 must not be white). This is all great, but it is all in scratchpad.
I’m hung up on how to move those same lists and variables into my generator itself (out of the scratchpad), then call them with a variable in the prompt. In the example above, in Scratchpad I might have
HUE1 = {CHARCOAL GREY|WHITE|CRIMSON|EMERALD}
and then use [HUE1] in the prompt to get a bunch of similar images with different color shirts.
I’m struggling to understand where (and with what syntax) I can move all of that into the code of the generator itself, and still either call [HUE1] when writing my prompt or use a dropdown list or something to select a value and assign it to the variable.
Can anyone point me in the right direction?
If you write:
HUE1 = {CHARCOAL GREY|WHITE|CRIMSON|EMERALD}on a new line in the perchance code editor, then you should be able to use
[]in your description box. If that doesn’t work then there may be a bug somewhere, either in your code, or t2i framework, assuming you’re using that. I just tested it and it seems to work fine for me though.I believe you should make a list in your own empty gen, and import it as plugin


