Ah, got it. So there's a fix in place, that will slowly roll itself out to each server over time? Cool, will paste links here if/when I find them.
wthit56
Ah great! Those were both pet peeves of mine, but I thought they're probably way too deeply embedded to change at this point. Thanks for this! I'll let you know if I find any new bugs from it. 👍
Perchance is built on JS. Code blocks are [JavaScript expressions]
. Functions just have fn() => JavaScript code
in them. Plus, you could just put a script tag in the HTML of the page and put JS direct in there if you wanted to. So yeah, you can do loops as usual. 👍
This also means you can call something like the image generator with just a simple js object, normal strings, and so on. Which can make things a lot easier and encapsulated.
Personally, I'd write the image function as not changing values, and just creating the needed HTML and returning that. But you can do things however you want to.
I'm not sure I fully understood, but I got the jist ;p
To generate a random value from a list, access it with .selectOne
to get a random item, or .evaluateItem
to get a finalised string value. And store that in a variable. So like row_animal = animals.evaluateItem
. Then use that in the prompt you send to the image generator function. If you want that to change between rows, after a row ends just run that code again to grab a new random item.
I don't see the code blending_value = [blending_values.selectAll[counter]]
in there at all.
next_matrix_image()
is very hard to read... you can use if and else statements so it's easier to understand (and code, I'd say).
...None of which really matters to your question. I'm just finding it very difficult to even understand what your code is doing or trying to do. 🫠
Is the problem that it changes animal? Looks to me like it's not changing animal. It always renders horses for me. Is that what you wanted, or didn't want? What do you actually want to happen? I'm so confused... 😅
If you added it to a gallery, then likely the title has the style listed in it on the gallery.
I don't know much about the glitch service or how it works with perchance generators. But what are you trying to do with it? Are you using instructions someone has written or something?
Cool.....? I guess you should add a link to this post so people can just go look at it, instead of just look at an image ;p Also, "screenshot-plugin" seems to not actually exist so the instructions in the image will not work.
Have you renamed it to "simple-screenshot-plugin" perhaps? https://perchance.org/simple-screenshot-plugin
Could I make some suggestions for changes to how this works? I could make my own, but since you've put the effort into making this in the first place I don't want to derail that if I can help it.
Allow passing a full query selector / element reference to the function.
Have functions to call to just render the canvas and get that canvas. Another to render and get a data url. Another to render and download.
And possibly one to download a data url image, and another to download a canvas image.
Doesn't need any more coding really, just moving some code around. And makes what you could use the plugin for waaaaay more versatile.
Well are you using a VPN? That's the first thing to check right?
Perchance needs the perchance servers to run the AI stuff. You cannot use a local copy of a generator to use the servers. You cannot direct the downloaded generator to use a local install of an AI.
I guess you'd have to create your own interface for your own local AI installation--if that's even a thing.
Oh I see. I'll keep these things in mind for people that ask.