Skip to content
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

Looking for a node to create simple horizontal and vertical masks #38

Closed
andreszs opened this issue Dec 13, 2024 · 2 comments
Closed

Looking for a node to create simple horizontal and vertical masks #38

andreszs opened this issue Dec 13, 2024 · 2 comments

Comments

@andreszs
Copy link

andreszs commented Dec 13, 2024

I'm looking for a node with the ability to create simple masked areas of arbitrary size, if possible with a visual representation of the areas, similar to this Visual Area Prompt node:
image

The only thing I've found so far is the awkward method using the Simple Binary Pattern from ComfyRoll Studio:
image

However it cannot create vertical masks, in fact it creates only images, then we have to convert it to mask, and I'd prefer to avoid installing a plethora of nodes to use just 1 of them.

Can this extension create simple masked areas like this? If yes, which nodes are involved? Thanks in advance.

PS. I'm asking this here because the author has disabled the GitHub Discussions section for this repo.

@guill
Copy link
Contributor

guill commented Dec 23, 2024

Hey @andreszs! While the Create Rect Mask node will do what you want, the output will be a black and white image which you have to convert to a mask via the Image to Mask node.

Some example config:

# Vertical stripe
mode = percent
width = 20
height = 100

# Horizontal stripe
mode = percent
width = 100
height = 20

This node pack doesn't have any front-end components though (which is what would be required to display a preview).

@andreszs
Copy link
Author

Thanks @guill, I've put together some nodes that output MASK with embedded preview, they are now part of the Impact Pack if anyone is interested. The same nodes (without preview) have been merged into WAS Node Suite too.

@andreszs andreszs closed this as not planned Won't fix, can't repro, duplicate, stale Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants