this post was submitted on 05 Jul 2024
5 points (85.7% liked)

Casual Perchance

80 readers
5 users here now

Casual Perchance

A nonspecific casual place for anything Perchance, including generator outputs, memes, prompts, casual discussion, advertising your generator, and anything else you wouldn't post in the more technical Perchance Forum.

This is where to post Community Events.

Resources:


Rules:

founded 7 months ago
MODERATORS
 

Hi, I'm very new to this so my apologies if this turns out to be somethng trivial. Basicaly what the title says. I tried to use lists in 't2i-styles' generator and it seems that basicaly every time I reference them with [ ] it doesn't work. I checked suggested causes but they don't seem to fit, but ofcourse it might be the case that I just don't properly understand it since, again, I'm new at this. So I turn for help here.

Here is the entire promp I used:

https://perchance.org/ai-text-to-image-generator#data=uup1:99b8a31afbea919b43bbf9bd77a902c4.gz

P.S. Also is there some way to make certain list combinations exclusive to each other? Example if I make list of backgrounds and list of accesories and I put sunglases into accesory list and beach into background. Can I make it so that sunglases are used only with the beach background? P.S.S. And can I make the AI ingore certain parts of the text temporarly so I don't have to erase them? I'm planing to expand the promp quite a lot and it would be much les bothersome that to always having to erase and then copy it back as it was. (Sorry for the extra questions, just figured it will be quicker to ask it all in one post.)

Thank you for help.

you are viewing a single comment's thread
view the rest of the comments
[–] VioneT 2 points 4 months ago* (last edited 4 months ago)

On the 'Scratchpad' you can create 'Perchance Lists' by creating a variable (not a list):

// Variable names must be upper case
VAR1 = here is your text [VAR2]

// This wouldn't work
// VAR2
//   one
//   two
//   three

// This would work
VAR2 = {one|two|three}

So, here is the fixed generator: https://perchance.org/ai-text-to-image-generator#data=uup1:335e398ae27a4c6f9cbe43b0fec928cf.gz

EDIT: Here is an example of using the variables in the Scratchpad with Perchance's Dynamic Odds to only toggle the correct items/output text based on a variable.

OUT = [x = SCENE.evaluateItem, '']a person in [BACKGROUND] [ACC]
SCENE = {beach|office|default}
BACKGROUND = {a white sand tropical beach^[x == 'beach']|a modern corporate office^[x == 'office']|on a cafe^[x == 'default']}
ACC = {wearing sunglasses^[x == 'beach']|wearing business formal attire^[x == 'office']|^[x == 'default']}

https://perchance.org/ai-text-to-image-generator#data=uup1:5c11ede62372d4a2c6afd79fde2410c8.gz