pt_CropPrecomps

Crop nested compositions to the image content, making it easier to animate Photoshop imports.
$
Individual users can pay any amount, the price displayed is a suggestion. Businesses, teams, etc must pay the suggested price to receive a valid license. See full terms.
Description

Crop nested compositions to fit the image content. Useful in cases like Photoshop imports where precomps are created as document size. It makes precomp layers easier to work with as their bounding boxes match the images, and can speed up rendering by reducing the areas being processed.

Written on request for screen graphics designer Mark Coleran, whose work can be seen on the computer screens in movies such as The Bourne Identity and Tomb Raider. Mark designs complex user interfaces in Photoshop made up of many layers nested into groups, before importing them into After Effects to animate.

HOW TO USE:

  • Import a Photoshop file as a Composition using the 'Cropped Layers' (CS3/4) or 'Retain Layer Sizes' (CS5) option.
  • Open the main composition for the file you imported and click the Crop Precomps button.

RETAIN BORDER: The Retain Border option lets you expand the area that would otherwise be cropped, so you can keep some extra space for animation or effects.

NOTES: The script is intended for use on newly imported or created layers and will not work correctly if they have been scaled, rotated or have position keyframes in AE. It should work with any 2D layers, including text and shape layers.

Adjustment layers, and layers that are completely outside the comp boundaries are ignored when calculating the crop sizes, but layers that are turned off are included.

Illustrator files won't import as nested comps, but you can import as layers using the 'Composition - Layer Size' option, use Layer -> Pre-compose to group them into nested comps, then use the script to crop those precomps.

Discussions

Want to talk about it?

Head over to r/aescripts to chat with fellow users about this product.

Need Support?

Please open a support ticket to be connected directly with the author of this product

Version History

2.2 -

Apr 23, 2017

Fix for help window not closing on Windows

Misc bug fixes

2.1 -

Dec 7, 2015

Ability to crop selected precomp layers only

Supports Photoshop Vector Masks

Supports non-square pixel aspect ratios

Compatibility

After Effects

2025, 2024, 2023, 2022, 2021, 2020, CC 2019, CC 2018, CC 2017, CC 2015.3, CC 2015, CC 2014, CC, CS6, CS5.5, CS5, CS4, CS3