908video / DCSubToAE

ExtendedScript plugin to import Subtitles into After Effects
GNU General Public License v2.0
40 stars 9 forks source link

DCSubToAE

ExtendedScript plugin to import Subtitles into After Effects

Currently supports the following subtitle formats:

more to come...

The import right now is rather basic:

How does it work?

Rather simple, actually (once one manages to bend your mind around the ExtendedScript API - which more often than not is for from obvious...). What we do is use the Layer Marker facility of After Effects to write each subtitle as a Layer Marker's comment onto a fresh layer. We then use Text Animators to keyframe certain text attributes at the correct in- and out-times of the subtitles.

The advantage of doing it this way:

The disadvantage (compared to creating Text Document objects and keyframing those):

The "Source Text" attribute of the Text Layer uses an expression (set up by the script too) to read the text from the Layer Markers:

n = 0; 
t = 0; 
if (marker.numKeys > 0)
{
  n = marker.nearestKey(time).index; 
  if (marker.key(n).time > time) n--;
} 
if (n > 0) marker.key(n).comment; 
else '';

Installation

Just copy into your Scripts\ScriptUI Panels\ folder

Disclaimer

This script was created as an in-house tool to burn (and retime) subtitles for DCPs. I would not exactly call it well tested and error proof. I'd rather expect it to set your cat on fire and run screaming through town. Naked. But in most cases, with well behaving subtitle files, it does what it should. And that's something too, right?