Scale layer to Comp size After Effects expression preset

Really simple expression based After Effects preset that automatically scale a layer to fit or fill the comp size maintaining or not the original aspect ratio. Hope you’ll find it useful. And if you want to share improvements, you’re more than welcome.

I don’t remember why I developed it, but I think that can be useful in some circumstances where you have to experiment and test with comp size. Or maybe you can use it just for fun or for learning purpose.

It has 4 Checkboxes – Scale to Fit Maintaining Aspect Ratio, Scale to Fill, Original Size, Bypass – for 5 combinations of use:

Combo 1, Scale the layer to fit the comp size (obviously it maintain the original aspect ratio of the layer):
Scale layer to Comp size After Effects expression preset

Combo 2, Scale the layer to fill the comp size stretching it (so it’s not maintaining the aspect ratio of the layer):
Scale-to-Comp-Scale-to-fill
Combo 3, Scale the layer to fill the comp size (it maintain the original aspect ratio of the layer):
Scale-to-Comp-Scale-to-fill-maintaining-ratio
Combo 4, restore the original size of the layer:
Scale-to-Comp-restore-original-size
Combo 5, bypass the entire presets (it restore the scale value defined in the layer properties if you have modified it):
Scale-to-Comp-Bypass
or
Scale-to-Comp-Bypass-2
It may appear complicated but it’s not. Check it by yourself.

Download Preset*

*This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License
By using davidbenedetti.it, you automatically agree and accept this website terms and conditions in full.