-
Notifications
You must be signed in to change notification settings - Fork 243
[Feature Request]: Better Mask Editor Canvas #2888
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Mask editor is supposed to only make masks, for drawing there should be a different editor, like the iTools Paint Node |
Thanks, @LukeG89. I know that there are a variety of node packs that allow painting on an image, but I was wondering if something could / would be built natively in Comfy to support that functionality. Since the MaskEditor interface already maintains the core structure, and people typically would only draw on images before masking off the area to sample, the MaskEditor seemed like a natural, one-stop place for that to live. Additionally, if someone drew using a different image editing node, and then connected it to a load image node for masking, they’d have to first queue the workflow in some way to get the drawn image into the load image node to have the updated file for masking. Therefore I do still believe that the best place for adding a drawing UI would be within the MaskEditor (maybe the name would be updated to something like Image Canvas). |
Yeah, "Mask Editor" could become "Image Editor", and that would be pretty convenient instead of using external software or custom nodes. But I guess it's a big change that someone has to work on, like what @trsommer did when implementing the new Mask Editor. |
@LukeG89 What do you think of something like the below? 1. Add a New Tool Mode for Painting
2. Add a Color Selector in UI
3. Modify BrushTool to Support Painting Add this property inside BrushTool:
Subscribe to the color picker updates:
Detect When to Paint Instead of Mask
Apply Paint Color Instead of Transparency
4. Ensure Undo/Redo Tracks Painting Separately
Modify restoreState to restore both layers properly:
|
To be honest, I don't know anything about this, so I can't say 😅 You can consider making a PR |
@brucew4yn3rp If you would like to test out generated code, it is fairly easy to do so by simply checking out the repo and compiling the code. If you are not a developer, I would recommend getting some experience in on a smaller task than the mask editor, however. |
@webfiltered Fair enough: #2921 |
Is there an existing issue for this?
What would your feature do ?
I know that there are a few custom nodes that address this functionality, but I am wondering if you plan to implement more advanced features when masking an image natively in Comfy.
Currently the native Mask Editor only allows for single color masking (black/white) and single mask / image layer.
Ideally, the interface would support drawing on the image itself, on a separate layer, in addition to covering the area with a mask. The drawing brush would support all RGB colors and there would be a color match eyedropper tool as well to select colors to draw with from the image.
This would greatly help guide the image generation when the mask is set to a lower opacity.
Proposed workflow
Additional information
No response
┆Issue is synchronized with this Notion page by Unito
The text was updated successfully, but these errors were encountered: