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,…
Nodes (14)
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