Expression Copied to Clipboard! 🗂
← Back to Expressions

Scale Layer to a Certain Width - After Effects Expression

Scale a layer to fit a pixel width. Apply to scale property

Scale Layer to a Certain Width

w = 600; // set to your target width
s = 100*w/thisLayer.width;
[s,s]

Copied to Clipboard!

Apply this expression to your scale property to set your width to a specific pixel amount. Change the w variable or link it to a Slider Control.

Credit