25% OFF Everything* with code CYBER during our Cyber Extravaganza! *Click for details

pt_CropPrecomps

  • Compatibility After Effects
    Please check exact version compatibility under the "COMPATIBILITY" tab below

Author: Paul Tuersley

Subscribe for notifications
Subscribe for new version notifications Subscribe
Name Your Own Price 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.
Add to Wishlist

Quick Overview

Crop nested compositions to the image content, making it easier to animate Photoshop imports.

pt_CropPrecomps_base

Videos

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.

  • pt_CropPrecomps UI
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
View all Paul Tuersley products