ComfyUI Extension: ComfyUI S4Motion
A set of ComfyUI nodes for animating a foreground layer over a background, with unified timing and high-quality composition. It includes effectors for rotation, position, path-following position, scale, opacity, distortion, and masking, plus a core node that composes frames and exports APNG/WEBP and a frame sequence.
Custom Nodes (0)
README
ComfyUI-S4Motion
Version: 1.5.0
A comprehensive motion animation toolkit for ComfyUI, providing 14 professional-grade motion control nodes for creating dynamic animations with production-ready quality and reliability.
🚀 Features
Core Motion Controls
- đź’€Motion Config - Central configuration hub for motion animations
- đź’€Motion Position - Precise position animation with smooth curves
- đź’€Motion Position On Path - Path-based motion control for complex trajectories
- đź’€Motion Rotation - Smooth rotation animations with customizable pivot points
- đź’€Motion Scale - Dynamic scaling effects with proportional controls
- đź’€Motion Opacity - Alpha channel animation for fade effects
Advanced Effects
- đź’€Motion Distortion - Professional distortion effects (Wave, Vortex, Radial)
- đź’€Motion Shake - Realistic shake and vibration effects
- đź’€Motion Mask - Animated mask controls for selective effects
Video Processing
- đź’€Video Crop - Precise video cropping with animation support
- đź’€Video Frames - Advanced frame extraction and processing
- đź’€Video Combine - Concatenate two videos or image sequences in time sequence
- đź’€Video Info - Analyze video or image sequence properties (dimensions, frame count, duration, FPS)
- đź’€Video Resize - Professional video and image sequence resizing with multiple scaling options
📦 Installation
Method 1: ComfyUI Manager (Recommended)
- Open ComfyUI Manager
- Search for "S4Motion"
- Click Install
- Restart ComfyUI
Method 2: Manual Installation
- Navigate to your ComfyUI custom_nodes directory:
cd ComfyUI/custom_nodes/
- Clone this repository:
git clone https://github.com/S4MUEL-404/ComfyUI-S4Motion.git
- Install dependencies:
pip install -r ComfyUI-S4Motion/requirements.txt
- Restart ComfyUI
đź”§ Dependencies
The plugin features intelligent dependency management with graceful fallbacks:
Core Dependencies (Required)
- PyTorch - Core tensor operations and ComfyUI compatibility
- Pillow - Professional image processing and animation frames
- NumPy - High-performance numerical computing for motion curves
Optional Dependencies (Enhanced Features)
- OpenCV - Video processing and advanced distortion effects
- Scikit-image - High-quality image transformations
- SciPy - Scientific computing for advanced motion curves
- Bezier - Professional motion curve calculations
All dependencies are automatically validated at startup with production-quality logging and fallback mechanisms.
đź“– Usage
- Find Nodes: All S4Motion nodes are prefixed with đź’€ in the ComfyUI node browser
- Categories: Look under "đź’€S4Motion" category
- Production Ready: All nodes include comprehensive error handling and logging
- Examples: Check the examples/folder for workflow documentation
Quick Start Example
- Add Motion Config node to establish animation timeline
- Connect motion effector nodes (Position, Rotation, Scale, etc.)
- Configure motion parameters and curves
- Connect to your image/video processing workflow
- Execute animation
🎯 Key Features
- âś… Production Quality - Enterprise-grade error handling and validation
- âś… Smart Dependencies - Automatic dependency management with fallbacks
- âś… Motion Curves - Professional easing with Bezier curve support
- âś… Timeline Control - Precise timing with delay, duration, and loop options
- âś… Advanced Effects - Wave, vortex, and radial distortion capabilities
- âś… Video Support - Comprehensive video processing and frame control
- âś… Path Animation - Complex trajectory support for sophisticated motion
🎨 Motion Curves
S4Motion supports professional easing functions:
- Linear - Constant speed motion
- Ease In - Gradual acceleration
- Ease Out - Gradual deceleration
- Ease In Out - Smooth acceleration and deceleration
With optional Bezier curve support for ultra-smooth professional animations.
🔄 Animation Controls
Each motion node supports:
- Duration - Animation length in seconds
- Delay - Start delay for sequenced animations
- Inverse - Reverse motion for return-to-origin effects
- Loop - Continuous repetition for endless animations
🤝 Contributing
Contributions are welcome! Please feel free to submit pull requests or report issues.
📜 License
This project is open source. Please respect the licensing terms.
Author: S4MUEL
Website: s4muel.com
Version: 1.5.0