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;

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.

More expressions you might like...