1.3 KiB
1.3 KiB
Photoshop ExtendScript Dataset Generator
This folder contains JSX scripts to generate systematic layer-effect ground-truth images in Adobe Photoshop.
Files
generate_inner_shadow_dataset.jsx— Starter script for Inner Shadow.
Usage
- Open Adobe Photoshop.
- Choose
File > Scripts > Browse.... - Select
generate_inner_shadow_dataset.jsx. - Choose an output folder when prompted.
Photoshop will create a new document for each parameter combination, draw a filled black rectangle, apply the Inner Shadow effect, and export a transparent PNG.
Current parameter grid (short version)
| Parameter | Values |
|---|---|
| angle | 0, 90, 180, 270 |
| distance | 5, 15, 30 |
| size | 10, 30 |
| choke | 0, 20 |
| fx opacity | 75, 100 |
| fx blend mode | Normal, Multiply |
Total images: 4 × 3 × 2 × 2 × 2 × 2 = 192.
Notes
- Blend mode keys use Photoshop's 4-character codes (
Nrml,Mltp). - The output PNGs have transparent backgrounds, so MAE comparisons can ignore white reference pixels if needed.
- Opacity is passed as 0-100 (e.g. 75 means 75%).
- If a combination fails, the script alerts and continues with the next one.
Next steps
- Add layer blend mode, layer opacity, and fill opacity variations.
- Extend to Drop Shadow, Outer Glow, Inner Glow, Stroke, Bevel & Emboss, Color Overlay.