Here’s a simple script that will remove a gap in an After Effects timeline, ripple editing all the layers after it. To use it, place the playhead in a gap — part of the timeline that has no active layers — and run the script. Layers that start after the gap get nudged up so that the gap disappears. The length of the comp is adjusted so that there is no empty space at the end. It’s like the memory hole—the gap never existed; we have always been at war with Eastasia.
Download the .jsx file below. It’s all open source, I’ll hoist it up on my github when I have a second.
The image, in case you’re wondering is the Pine Gap spy base that the US operates in Australia. Many people think that letting the CIA and US military conduct drone strikes from Australian territory might not be a good thing. Unfortunately this script won’t get rid of that particular gap.