14 Replies
andybak
andybakOP2y ago
Currently UI for the new Plugin Scripts is limited to declaring that a given parameter is to be controlled from a slider but I am planning other widget types. (The existing HTTP API allows you to use any language/UI but of course the snag is that it appears outside the app)
andybak
andybakOP2y ago
If you want to play around in the C# code, the developer docs have some info on how the UI system works: https://docs.openbrush.app/developer-notes
andybak
andybakOP2y ago
@enigmatron_ :
Thanks, I'll play around with the code a bit. I just wanted make a few API calls to a web server first and take it from there.
What kind of calls? I'm working on outgoing calls myself for something else. The bit I'm uncertain about is whether and how to go async (or not to bother) Scripts currently run on the main thread.
cog
cog2y ago
I wanted integrate some AI stuff. Stable Diffusion, Point-E, just make the call and bam.
andybak
andybakOP2y ago
Ah OK. And would the HTTP API not be an easier way to do this?
cog
cog2y ago
I can run a script on the side but you know switching apps isn't that flowy.
andybak
andybakOP2y ago
PC or standalone?
cog
cog2y ago
Standalone.
andybak
andybakOP2y ago
Yeah. It's a couple of clicks (assuming Meta don't stop breaking the ability to switch to the browser without quitting the app) I presume you'll need a keyboard for entering the prompts?
cog
cog2y ago
Yes. It would work for just the prompts but if we want to render the depthmaps, canny maps a UI would be really helpful. I also find posing characters easy on VR. How do I run the experimental builds side by side with the stable one?
andybak
andybakOP2y ago
On the Quest? They install to "Unknown Sources" - you can have many builds installed. I meant "how are you implementing a keyboard?" We have a pull request for one so best to use that.
cog
cog2y ago
Oh thanks.
andybak
andybakOP2y ago
I guess I'm trying to think how what you're planning might be part of a broader feature. Much more likely to get accepted for a pull request if it can be generalized. I've been holding off on text-to-3d AI because they are fairly rough but there's been a lot of activity recently. text-to-image is great but without some 3d element, there's not a huge amount of value to adding it to the main app. If we got automatic depth maps and rendered them with parallax - now that would start to sound interesting! I'm missing a good parallax shader at the moment.
Want results from more Discord servers?
Add your server