Replies: 1 comment
-
|
My approach for Integer/Float parameter preview color swatches is to decouple the previewed value widget used, if any, (infered based off minimum/maximum numeric values set in workflow parameters), with the flexibility of all usable QOL widgets able to set values (based off parameter data type only in workflow). Example as below: Grayscale color Swatch:
As in the above cases, whether the parameter is actually used to represent grayscale color values or not in the workflow is irrelevant so long as the minimum/maximum constraints matches the specific "pattern". RGB Color swatch:
RGBA Color Swatch
As in the above cases, whether the parameter is actually used to represent RGB/RGBA color values or not in the workflow is irrelevant so long as the minimum/maximum constraints matches the specific "pattern". |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've just set up a draft/feature branch: main...Glidias:krita-ai-diffusion:feature/qol_param_extensions#diff-0852b89d5f21ca3a3b940194e0bdfb1aee7d0b3ef7de51b86cc6e1f6722e4058 for a Points Editor UI in Krita and other registerable menu parameter widget extensions. I am currently using it for ComfyUI API SAM2 workflow (or similar ones) to help specify the SAM2 coordinates in JSON text format.
Workflow: Glidias/mask2sam#5
Usage UI:
https://github.com/Glidias/krita-ai-diffusion/wiki/Feature:-Points-Editor-Widget
any other ideas? Widget menu parameter widget extension list to help user enter:
Currently registered widget extension features: https://github.com/Glidias/krita-ai-diffusion/blob/feature/qol_param_extensions/ai_diffusion/ui/register_extensions.py
Beta Was this translation helpful? Give feedback.
All reactions