ConvertToGradient.jsx

This image shows how the ConvertToGradient.jsx script transforms flat-filled shapes into smooth, dynamic gradients with a single click. On the left, the pear outline uses simple solid colors—clean but flat. After running the script (right side), each stroke becomes a subtle light-to-dark gradient, adding volume, shading, and a polished 3D feel.
Key Features
- Auto-Gradient Creation: Converts solid colors into matching two-stop gradients.
- Smart Color Support: Works with RGB, CMYK, Grayscale, and Spot colors.
- Custom Controls: Adjust gradient shift amount (light/dark intensity) and angle.
- Multi-Object Processing: Supports groups, compound paths, and multiple selected items.
- Clean Output: Generates new gradient swatches automatically.
- Error-Safe: Skips objects with invalid fills (patterns, gradients, global colors).
Perfect for illustrators, icon designers, and anyone looking to bring more life and dimension into their artwork—without manually building gradients for every shape.