Skip Navigation
how to use [l=list.pickOne] across html and list editor?
  • https://perchance.org/hm20ndlb7m Not sure if you meant like this, a dropdown to choose from the list of genres. In perchance lists, the correct syntax to choose one is [list.selectOne] to choose one. You can assign it to a variable that you can later use, for example:[selectedGenre=genre.selectOne].

  • Need one more syntax help
  • Good idea but that would be a hell of a job to track all the pieces across different lists plus specification for each piece where it goes. Since I'm lazy I just did:

    Uniform
      https://user.uploads.dev/file/53321b33603b8f9f386fb870db73ad65.png
      top=batman mask
      mid=batman suit with batman logo on the chest, batman gloves, batman belt
      low=batman pants, batman boots
      rear=batman cape, mask straps on the back of the head
      noZoom=[this.top], [this.mid], [this.low], partially visible batman cape on the sides
    

    and then just call it like [Uniform[camera]]. I can easily filter out different actor specifications now.

  • Need Syntax help for functions
  • That's what I'm doing. I'm setting those values to all html elements, as well as using them in the lists. That's why I need to declare them to avoid "undefined" errors in the list section, for the first time users or after a remember(root, forget). Right now I have a long construction with something like this, [actor==undefined?actor="Any":""], it's clunky but it works. The "optimized" version that I was trying to make and asked help for with FOR construction and window[key] =... actually worked but in the HTML part. You're right it, THIS of course, referred to the function not the document. However, while it works for the elements, somehow the lists "forget" them immediately after the first update(). So, I'm just keeping it as is for now with [if undefined then value].

  • Need one more syntax help
  • Thanks for your answers! You gave me some good ideas there. But dynamic odds is what I was trying to avoid because I have 200+ suits, not just batman uniform, I can't spell it out in each of them and was trying to make one line rule for them all. Index 0 - png, index 1 is top, index 2 is mid, etc.

  • Need Syntax help for functions
  • the variables are supposed to be a global variables, just like if it wrote [charNum==undefined?chaNum=1:""]. charNum, for example, is the value of a slider. But there are all kind of html elements associated with different variables, from radio inputs to strings.

  • Need one more syntax help

    https://perchance.org/mytestgen#edit In this generator, I have a suit list that consists of 5 areas: mask, cape, boots etc. The other two lists are "camera" and "actor". So, camera can zoom-in on a certain body part, and I need it to output only that section of clothing, leaving everything else out-of-frame. That I solved. But there's a third dimension to it. The third list is Actor, some characters cannot wear certain clothes because of their characteristics, for example, mermaid can't wear bottom clothes. Help me add that third dimension into the output line to filter it out properly, please.

    5
    Need Syntax help for functions

    testing here: https://perchance.org/z7l103ul1q#edit I have quite a big list of variables, that cause errors if undefined or null. So, I wanted to run a FOR through all of them at the very beginning. But perchance functions always ask to return something. How do I do it?

    4
    Faces too much the same
  • Try proving a few more details. You can't be vague with the new model, it'll fallback to the basics it was trained in. And it's obvious that the flex females predominantly had lip contouring.

  • How to replicate this specific artstyle from the old image generator?
  • You seem to have pretty good idea what you're looking for. So, put it into words inside a prompt, and tune it phrase by phrase. The new model is quite good at catching the detailed description. The older model had its charm, but let's be honest it was outdated.

  • How to replicate this specific artstyle from the old image generator?
  • check these out if they are any close to your idea, you could use my generator. Style -> Digital painting, filter: default (you can play with painting section filter, to an artist (scroll photo and anime artists to "Painting") or a painting style (baroque, realism, etc) to try and tune it). Actor->Male, Person, 25, Masculine, Western European. Clothing -> Medieval armor. Camera -> artistic, facial expression: determined. Scene -> Forest, night, cloudy, dramatic. Once you find your thing, you can Tools -> Save this under a name. It'll be available in Actor -> Main character -> Saved, so you don't have to choose the settings every time. https://perchance.org/imageconstructor

  • NSFW
    Getting an error while customising perchance lunatics
  • could you provide a link to your generator at least? for select elements id should always be different. if you want to use the same list twice you just change the id. but actually seeing what you are talking about would be a start.

  • Text-to-image logic

    Recently, text-to-image plugin has changed a lot. With respect to Perchance, I'd like to share my humble opinion about it. Take a horse in a medieval setting, for example, 2 pictures out of 5 have blurred/distorted faces. It's not a famous face or a nudity content but it's still getting heavily censored for some reason. I understand the need for censorship and such, but could we focus more on the end user not seeing what they don't want to see in the gallery section rather than messing with the t2i logic? It's a fake parts in fake parts out, at the end of the day, no real person is involved, but it's messing with normal images generation kinda defeating the whole purpose of the plugin and hindering the imagination flow.

    2
    [Question] Save one Charakter
  • It stores locally on your drive but I've been coding these days and changed a lot, that's why it constantly resets for you. Sorry about that. Previously working version is not fully functional atm, because I added image dropdowns, and they are not saved atm. I'm gonna finalize the early beta soon. Until then, I'd recommend making a duplicate of the generator from the settings, so you're not affected by me coding.

  • Question about website moderation
  • Just prohibit posting any nsfw stuff in the public library before logging in. That should fix most of the problems. The moderation system is not ideal and I assume it's a lot of extra work.

  • NSFW
    A petition to be able to generate pictures with higher resolution
  • That could partially be mitigated in the original prompt. Try specifying each facial feature and how you wanna see it. I do something like "ultra detailed skin around eyes" etc when I'm focusing on it. Also, make sure to use 512x768 resolution, when you're making a full body shot. This will prevent many distortion problems. Also, add "shallow depth of field lens" to focus more on the composition rather than background.

  • [Need help] Making select elements user friendly

    https://perchance.org/tz4t341n8c#edit In this test generator, in the center, I have a select form which is just a pose list put into options. I have a lot of them in my main generator, and I want to make them a little be more user friendly and interactive, also bypassing language barrier, so I want to add pictures into the options instead( or in addition to words). That's what I did in the poseRadio list. I substituted radio label's background with pictures using CSS styles. I'm planning to have a second list of picture urls for each list, or I could create an array of URLs in the html part. Ideally, it should look like a dropdown with a picture and then the list item name next to it. And when selected, only the item name is stored in the variable without the picture. I'm not sure how to do that yet. Need your help combining select and input radio in some way, thanks!

    7
    Setting image file name without affecting the prompt

    Hi. I'm using a line like this [fileName="{0-9}{a-z}{A-Z}".selectMany(12).join("")] to create a set of numbers and letters at the beginning of the prompt. In the previous model I used to set the priority to 0, so the AI ignored it, but I noticed that the new model ignores :: and these numbers started to appear on objects inside the images. Could I assign a filename in any other way?

    3
    Hex color that AI can understand

    Hi, I'm looking for a way for the AI to understand a hex color in the format #fff000, for example, if I get it from a color html element. If you directly ask the flux plugin to show a #fff000 shirt he will use a random color instead, so ideally I need to translate it into words, if that's possible at all? Or perhaps, there's another way.

    2
    Need help with syntax during list filtering

    I have a list of clothing items and a variable [gender] that contains value for example "♂️" male. Some items on the list of clothing also contain emojis ♀️ or ♂️ in them, something like "Batman suit♂️". I'm trying to exclude all items with ♀️ if "gender==♂️" and vice versa. I've tried to use clothingTop.selectAll.filter(newlist =>newlist.tags.includes([gender])), ald also match(/♀️/i), I'm not sure how to proceed.

    10
    Lighting in photography styles

    Hi, since the new model came out I struggle to create a middle-of-the-day atmosphere for my photos. "sunny", "very sunny", "the sun is in the zenith", "middle-of-the-day sunny lighting", "{bright|soft} natural day lighting" and many more produce early morning or late day close to sunset. I also tried to use Joy Caption to describe the photos from before, but the description of the lighting and the atmosphere is quite vague and it doesn't help to solve the problem. Any help, please?

    1
    Need help with syntax: unique select from a string

    Hello. I'm using something like this ["{red, blue, green, orange, lime}".selectMany(3).joinItems(", ")]. It works well enough, but when I try to implement uniqueSelect or consumableList it fails. These function seem to only work for lists but is there any way to select items from a string like that without repetition. Thanks!

    3
    Need help with [output] container

    Using the text-to-image plugin I generate a bunch of [output]'s in the <div> container. How do I access the <img> tag that the output object creates, for example if I want to get the title to get nseed from it using java script, or there's an easier way to do that? I'm trying to make a button over the image to perfect that seed easier. Also, how do I access the button with id "heartBtn" that [output] creates?

    4
    InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)KO
    Koto @lemmy.world
    Posts 10
    Comments 52