Long Shadow
Script for Adobe Illustrator
✦ Available exclusively on Patreon for Pro supporters.
ㅤ
Description
Long Shadow is a powerful script that generates smooth, customizable long shadow effects for paths, text frames, compound paths, and groups in Adobe Illustrator. The script features a live preview interface with intuitive controls, allowing you to fine-tune your shadow effect in real-time before applying it.
ㅤ
Key Features
- Live Preview: See changes instantly as you adjust parameters
- Hide Edges: Hide selection edges and bounding boxes for a clearer view of the effect
- Multiple Object Support: Works with paths, text frames, compound paths, placed and embedded images, and groups
- Curved Path Support: Accurately samples bezier curves for smooth shadow rendering
- Perspective Control: Adjust end scale to create vanishing point effects
- Color Picker: Choose any color for your shadow with hex input or visual picker
- Persistent Settings: Saves your preferences between sessions
- Fit to Window: Zoom control to view your entire selection with shadow
ㅤ

ㅤ
Installation
1. Download the Long Shadow.jsx script file.
2. Place the script in your Adobe Illustrator Scripts folder:
⮑ Mac: /Applications/Adobe Illustrator <Version>/Presets/<Language>/Scripts
⮑ Windows: C:\Program Files\Adobe\Adobe Illustrator <Version>\Presets\<Language>\Scripts
3. Restart Adobe Illustrator if it's already running
4. Access the script via File > Scripts > Long Shadow
5. Alternatively, run it directly via File > Scripts > Other Script... and browse to the file location
Tip: You can also drag and drop the .jsx file directly onto the Illustrator workspace to run the script instantly – no installation needed.
ㅤ
Using the Script
ㅤ
Prepare Your Artwork
- Open an Adobe Illustrator document
- Select one or more objects (paths, text, compound paths, images, or groups)
- Ensure your objects have a fill color (the script will sample this color for the shadow)
ㅤ
Launch the Script
- Go to File > Scripts > Long Shadow
- The dialog window will appear with your current selection:
ㅤ

ㅤ
Adjust Shadow Parameters
The dialog provides five main controls:
ㅤ
➊ Angle
- Controls the direction of the shadow
- Default: 45°
- Tip: Use arrow keys for fine adjustment (Shift + arrow for 10° increments)
- Right-click the slider to reset to default
ㅤ

ㅤ
➋ Size
- Determines how long the shadow extends
- Default: 100 px
- Tip: Values can exceed 1000 by typing directly in the input field
- Right-click the slider to reset to default
ㅤ

ㅤ
➌ Opacity
- Controls shadow transparency
- Default: 50%
- Tip: Lower values create subtle shadows, higher values create bold shadows
- Right-click the slider to reset to default
ㅤ

ㅤ
➍ Scale
- Adjusts the end shape size for perspective effects
- Default: 100% (no scaling)
- 0%: Creates a vanishing point effect
- 100%: Maintains original shape size
- >100%: Enlarges the shadow end for reverse perspective
- Right-click the slider to reset to default
ㅤ

ㅤ
➎ Color
- Choose the shadow fill color
- Hex Input: Type a hex color code (e.g., #FF0000 for red)
- Color Swatch: Click to open the color picker
- Default: Automatically sampled from your selected object
ㅤ

ㅤ
Keyboard Shortcuts
- Up/Down Arrow: Adjust values by 1
- Shift + Up/Down Arrow: Adjust values by 10
- Right-click Slider: Reset to default value
ㅤ
ㅤ
Use Preview Mode
- Preview Checkbox: Enable to see changes in real-time
- When enabled, the shadow updates automatically as you adjust parameters
- Disable preview to make adjustments without applying them
- Hide Edges Checkbox: Hide the bounding box and selection paths of your objects to get a cleaner view of your artwork while fine-tuning the shadow.
ㅤ
ㅤ
Fine-Tune Your View
- Zoom Button (✚): Click to fit your selection and shadow in the window
- Useful for viewing the complete effect, especially with large shadow sizes
ㅤ
ㅤ
Apply or Cancel
- OK: Applies the shadow effect and closes the dialog
- Cancel: Discards changes and closes the dialog
- The script automatically saves your settings for next time
ㅤ
ㅤ
☻ Wrap Up
Whether you're creating sleek UI elements, adding depth to flat illustrations, or experimenting with vanishing points, Long Shadow gives you complete control over your creative vision.
Enjoy exploring the possibilities and bringing your vector, raster, and placed artwork to life with stunning, precise shadows!