It’s tedious trimming the length of a comp to the length of a layer, particularly if the layer extends past the beginning or end of a comp.
My first ever After Effects script makes it much easier.
Trimming comps is tedious, and if you have nested comps that you also want to extend, you have to walk your way down them all to adjust their length, and into their nested comps and so on. Apart from being soo duuull, it’s super easy to miss a nested layer somewhere, leading to unexpectedly disappearing layers.
So this is a tool that lets you do several things:
- choose a layer or several, and then trim the comp to the last out-point and/or the first in-point of the layers.
- For layers that are media layers (movie files etc.) you can trim to the full source length,
- trim the start or end of the comp to the current time with one click
- Extend any layers that currently go to the beginning / end of the comp so that they extend to the new beginning / end
- Recurse into nested comps, extending or trimming them, so that they match the new length
One thing that it doesn’t do, because extendscript doesn’t have the capability is to zoom out the time view to the length of the newly extended comp. So if you click the button, and it looks like nothing happened, try zooming out your timeline.