Let me start by saying thank you to all of the people who have made creating a t2i page quick and easy. The t2i framework makes itba snap to get a page up and running. I am a complete noob to coding so I have absolutely no idea what I'm doing but I'm doing it with confidence lol.

The question: Is there a way to pass the prompt data from a select input directly into a paragraph (description) box. I know modifiers can do it but I would like to try something different (for me). I'd like to try a gen option, using the t2i framework, where a user can see in real-time what is being added to the prompt without having to use modifiers to do so.

Thanks for any productive responses. Please go easy on the new guy. I can't be doing all that bad as I've had over 22k views in a couple of weeks. 😁

Thanks, Mack

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

In the example in my last comments is possible to edit. If you want the generation to use the edits made in the prompt box, then check the line 44 in the left panel, there is this code "prompt = [prompt.input || input.artStyle.prompt]"

So if there is something in there (prompt.input) it will use the edits. If not then the input.artStyle.prompt will be used. The "||" means "or", if there is no data (empty string) then it will skip to the next item, so that says (use the thing from prompt.input, OR, use the thing from input artStyle.prompt)

note that "prompt.input" is the variable declared in the right panel, it is not the same as "input.fullprompt", but you can use "input.fullprompt" or whatever is the name of your inputs without problem

  • source
  • parent
  • hideshow 1 child comment