diff --git a/docs/editor_features.png b/docs/editor_features.png new file mode 100644 index 0000000..7d92c21 Binary files /dev/null and b/docs/editor_features.png differ diff --git a/docs/icon.png b/docs/icon.png new file mode 100644 index 0000000..fcf5403 Binary files /dev/null and b/docs/icon.png differ diff --git a/js/MaskEditorForVframes.js b/js/MaskEditorForVframes.js index 72c3259..673c017 100644 --- a/js/MaskEditorForVframes.js +++ b/js/MaskEditorForVframes.js @@ -574,13 +574,17 @@ class MaskEditorDialog extends ComfyDialog { self.moveToPrev(); } else if (event.key == 'ArrowRight') { self.moveToNext(); - } - // else if (event.altKey && (event.key == 'z' || event.key == 'Z')) { - // event.preventDefault(); - // event.stopPropagation(); + } else if (event.altKey && event.shiftKey && (event.key == 'z' || event.key == 'Z')) { + event.preventDefault(); + event.stopPropagation(); + self.unstackAfterCanvas(); + + } else if (event.altKey && (event.key == 'z' || event.key == 'Z')) { + event.preventDefault(); + event.stopPropagation(); + self.unstackBeforeCanvas(); - // self.unstackBeforeCanvas(); - // } + } self.updateBrushPreview(self); } diff --git a/pyproject.toml b/pyproject.toml index edb5f19..1216e12 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "comfyui-seqimageloader" description = "This is an extension node for ComfyUI that allows you to load frames from a video in bulk and perform masking and sketching on each frame through a GUI." -version = "1.0.0" +version = "1.0.1" license = "LICENSE" [project.urls] @@ -11,4 +11,4 @@ Repository = "https://github.com/bruefire/ComfyUI-SeqImageLoader" [tool.comfy] PublisherId = "bruefire" DisplayName = "ComfyUI-SeqImageLoader" -Icon = "" +Icon = "docs/icon.png" diff --git a/readme.md b/readme.md index 5e9a6db..8578eab 100644 --- a/readme.md +++ b/readme.md @@ -31,6 +31,18 @@ Otherwise, it is the same as the SequentialImageLoader Node. 1. After loading the frames, right-click the node and select "Open In MaskEditor". 2. In the editor that appears, perform masking and sketching as needed. It is based on the standard Mask Editor. +### Editor Features +![image](docs/editor_features.png) +1. Switch between automatic masking (magic wand) and manual masking. +2. Switch between masking and sketching. +3. Canvas. Right-click to mask, left-click to unmask. +4. Change edit frame. +5. Clear mask on the current frame. +6. Paste the mask from the previous frame to the current frame. +7. Change the thickness of the masking. +8. Undo/Redo operations. Shortcut keys are alt+Z/shift+alt+Z. ( **not Ctrl+Z!** That's the standard shortcuts for ComfyUI. It might cause unexpected behavior.) +9. Save or cancel the results. + ## Example With AnimateDiff ![iamge](docs/dogcat.gif)