Script for Exporting Textlayers as Subtitle

All things .jsx

Moderator: Paul Tuersley

Post Reply
display-artist
Posts: 1
Joined: June 27th, 2012, 2:08 am

Hey!

I recently had to create a Caption- / Subtitle File for a Youtube-Video.
I already had positioned all the Text-Layers within After Effects, but there was no way to export them to an .SRT-File (which can be uploaded on Youtube).

So i found the Subtitle Import Script from Paul Tuersley, but as the name says - u only can import! Unfortunately i didn't get any response from him on my request for writing an Export-Script.

So i tried it myself - and it works (AE CS6). There is some code included vom Paul as well.

Instructions:
1. I build this Script only for myown - so it has not been tested very well. This is my first Script! Use it on your own Risk!
2. Select all the Textlayers in your Composition, that you want to export (The Script is searching for the In- and Outpoint of the selected Layers - so you need them to be positioned before running the script!)
3. Run the Script
4. A Textfile will be opend including everything you need for the .SRT-File. Simply save the File as .TXT and rename it to .SRT

This is very rudimental, but maybe someone has the same problem and can use / modifiy the script.
Best, Phil

Image
Image
Attachments
subtitle_export.zip
Subtitle Export Script
(1.2 KiB) Downloaded 4777 times
MartenK
Posts: 1
Joined: August 20th, 2015, 6:55 am

Wonderfull! I tried this in After Effects CC and it works like a charm. Well done!
whistlin
Posts: 1
Joined: September 27th, 2017, 3:30 am

Hi
 I cannot do the same for "Hindi" or Devanagari Script
can you please help
in dire need
screenshot link
https://www.dropbox.com/s/ca003hz3pk24x ... d.jpg?dl=0

Please help
User avatar
GauravSingh
Posts: 1
Joined: January 23rd, 2019, 12:24 am

Hi Need help on Exporting Hindi language Subtitle....
User avatar
KiwiVFX
Posts: 1
Joined: February 3rd, 2021, 7:39 am

RTL version - for who ever needs :wink:
use by "File"->"Scripts"->"Run script file..."

Attachments
subtitle_export-he.jsx
(3.03 KiB) Downloaded 615 times
songz
Posts: 2
Joined: December 23rd, 2010, 2:04 am

hi, i had develop a similar script
hope you like it

https://github.com/msongz/quickSRT

Post Reply