6 Commits
Author SHA1 Message Date
jtrue fe2495647f Update rect_mask.py 2025-08-24 00:20:23 -04:00
jtrue 7418525c9e Update rect_fill.py 2025-08-24 00:19:54 -04:00
jtrue 87c6871413 Update pyproject.toml 2025-08-24 00:16:10 -04:00
jtrue 85e0c69c3b Add files via upload 2025-08-23 23:32:27 -04:00
jtrue 3fff3b5b89 Update README.md 2025-08-23 19:56:43 -04:00
jtrue 60bef64152 Update rect_select.py 2025-08-23 19:54:59 -04:00
3 changed files with 19 additions and 5 deletions
-1
View File
@@ -32,7 +32,6 @@ Outputs a reusable **RECT** object (`{x,y,w,h}`) **and** the four scalar values
ComfyUI/custom_nodes/
```
2. Restart ComfyUI.
3. Open the UI with **`?nocache=1`** (e.g. `http://127.0.0.1:8188/?nocache=1`) to refresh front-end JS.
> If the **“Open Rect / Select”** button doesn’t appear, it’s almost always cache—use `?nocache=1`.
+5 -4
View File
@@ -24,10 +24,10 @@ class RectSelect:
return {
"required": {
"image": ("IMAGE",),
"x": ("INT", {"default": 0, "min": 0}),
"y": ("INT", {"default": 0, "min": 0}),
"w": ("INT", {"default": 256, "min": 1}),
"h": ("INT", {"default": 256, "min": 1}),
"x": ("INT", {"default": 0, "min": 0, "max": 65535}),
"y": ("INT", {"default": 0, "min": 0, "max": 65535}),
"w": ("INT", {"default": 256, "min": 1, "max": 65535}),
"h": ("INT", {"default": 256, "min": 1, "max": 65535}),
}
}
@@ -45,3 +45,4 @@ class RectSelect:
NODE_CLASS_MAPPINGS = {"RectSelect": RectSelect}
NODE_DISPLAY_NAME_MAPPINGS = {"RectSelect": "Rect / Select"}
+14
View File
@@ -0,0 +1,14 @@
[project]
name = "rect"
version = "0.1.2"
description = "Interactive rectangle tools for ComfyUI: Select, Crop, Mask, Fill."
license = { file = "LICENSE" }
requires-python = ">=3.10"
[project.urls]
Repository = "https://github.com/jtrue/ComfyUI-Rect"
[tool.comfy]
PublisherId = "jtrue"
DisplayName = "Rect"
Icon = "https://raw.githubusercontent.com/jtrue/ComfyUI-Rect/main/assets/rect-select.png"