diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..7c67657 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2024 Machine Delusions + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index 3d36588..f7abb53 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ A standalone ComfyUI custom node for creating animated shapes that follow user-d 1. Clone or download this repository into your ComfyUI custom_nodes folder: ```bash cd ComfyUI/custom_nodes/ -git clone https://github.com/yourusername/ComfyUI_FL-Path-Animator.git +git clone https://github.com/machinedelusions/ComfyUI_FL-Path-Animator.git ``` 2. Restart ComfyUI @@ -27,7 +27,7 @@ git clone https://github.com/yourusername/ComfyUI_FL-Path-Animator.git ### Basic Workflow -1. Add the "FL Path Animator V2" node to your workflow +1. Add the "FL Path Animator" node to your workflow 2. Click the **"Edit Paths"** button to open the path editor 3. Use the toolbar to: - **✏️ Pencil** - Draw motion paths (hold SHIFT for straight lines) @@ -131,5 +131,5 @@ Extracted as standalone node for easier distribution. ## Support For issues, feature requests, or questions: -- GitHub Issues: [Your repo issues page] +- GitHub Issues: https://github.com/machinedelusions/ComfyUI_FL-Path-Animator/issues - Patreon: https://www.patreon.com/c/Machinedelusions diff --git a/__init__.py b/__init__.py index e9a106e..b66d02e 100644 --- a/__init__.py +++ b/__init__.py @@ -1,12 +1,12 @@ """ -FL Path Animator V2 - Standalone Node Pack +FL Path Animator - Standalone Node Pack Creates animated shapes that follow user-drawn paths with visual editor. """ from .nodes.FL_PathAnimator import FL_PathAnimator NODE_CLASS_MAPPINGS = { - "FL_PathAnimatorV2": FL_PathAnimatorV2, + "FL_PathAnimator": FL_PathAnimator, } NODE_DISPLAY_NAME_MAPPINGS = { diff --git a/nodes/FL_PathAnimatorV2.py b/nodes/FL_PathAnimator.py similarity index 98% rename from nodes/FL_PathAnimatorV2.py rename to nodes/FL_PathAnimator.py index f080bc7..40a886a 100644 --- a/nodes/FL_PathAnimatorV2.py +++ b/nodes/FL_PathAnimator.py @@ -30,7 +30,7 @@ class FL_PathAnimator: RETURN_TYPES = ("IMAGE", "MASK", "STRING",) RETURN_NAMES = ("image", "mask", "coordinates",) FUNCTION = "animate_paths" - CATEGORY = "🎨 FL Path Animator V2" + CATEGORY = "🎨 FL Path Animator" DESCRIPTION = """ Creates animated shapes that follow user-drawn paths. Open the path editor to draw trajectories on a reference image, then shapes will follow these paths over time. @@ -261,7 +261,7 @@ Outputs WAN ATI-compatible coordinate strings with proper 121-point resampling f paths = paths_obj.get('paths', []) canvas_size = paths_obj.get('canvas_size', {'width': frame_width, 'height': frame_height}) except json.JSONDecodeError: - print("FL_PathAnimatorV2: Invalid JSON in paths_data, using empty paths") + print("FL_PathAnimator: Invalid JSON in paths_data, using empty paths") paths = [] canvas_size = {'width': frame_width, 'height': frame_height} @@ -369,6 +369,6 @@ Outputs WAN ATI-compatible coordinate strings with proper 121-point resampling f # Output as list of tracks (each track is a list of 121 {x, y} points) coord_string = json.dumps(coord_tracks) - print(f"FL_PathAnimatorV2: Generated {len(coord_tracks)} tracks with 121 points each for WAN ATI") + print(f"FL_PathAnimator: Generated {len(coord_tracks)} tracks with 121 points each for WAN ATI") return (out_images, out_masks, coord_string) diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..2f550b0 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,18 @@ +[project] +name = "comfyui-fl-path-animator" +description = "Interactive path animator with visual editor for creating animated shapes that follow user-drawn paths. WAN ATI compatible for stable video generation." +version = "1.0.0" +license = { file = "LICENSE.txt" } +dependencies = [ + "Pillow>=9.0.0", + "numpy>=1.20.0" +] + +[project.urls] +Repository = "https://github.com/machinedelusions/ComfyUI_FL-Path-Animator" +Homepage = "https://www.patreon.com/c/Machinedelusions" + +[tool.comfy] +PublisherId = "machinedelusions" +DisplayName = "FL Path Animator" +Icon = ""