A Cavalry script that scales selected layers proportionally to the width of the active composition. Its panel previews the layer width, composition width, and target scale for a single selection. You can fit several selected layers in one click.
| Single layer | Multiple layers |
|---|---|
![]() |
![]() |
- Download FitToCompWidth.jsc from the v1.0 release.
- In Cavalry, open Scripts > Show Scripts Folder and copy
FitToCompWidth.jscinto that folder. - Run Scripts > FitToCompWidth in Cavalry.
The editable source is FitToCompWidth.js.
Select one or more layers and click Fit Width. Each selected layer with a measurable width is scaled to match the composition width while keeping its current proportions. The panel shows the target scale for a single selected layer; for multiple layers, each is calculated separately.
MIT © 2026 Maxson Richards.

