00:00
10
More
See all Show me
6. Kamehameha
2 years ago
5. Patrick speaking
3 years ago
4. Felicitare
3 years ago
3. Subtitle script demonstration
3 years ago
2. The Smoke
3 years ago
1. Sin City
3 years ago
In case you're wondering WTF this is about, this link explains it all :)

ithowto.ro/2008/12/adobe-after-effects-subtitle-script/

Credits

Likes

  • wow! pretty much sums up every hollywood movie i've ever seen.
  •  
  • !Rocky 2 years ago
    That's it, buddy, you owe me a new keyboard :D
  •  
  • Colin Harman 2 years ago
    I can't get this to work, it won't let me select the text file once I create it, no matter what format
    I am on a mac, and I've even tried creating the file on a PC in notepad, what am I doing wrong? Please help me! Thank you!
  • jonaskh 2 years ago
    Colin I have the same problem, no matter what I do, it wont let me open a txt file. Can you explain to me how you fixed it? I am desperate and have to finish the project before 24 hours. hope you will save my ass by replying? thanx
  •  
  • Colin Harman 2 years ago
    I figured it out, thanks so much!!!
  •  
  • !Rocky 2 years ago
    Could you explain how you did it? I mean, this is the first script I wrote, so any feedback is appreciated ;)
  •  
  • jonaskh 2 years ago
    I cant get it to open the txt file no matter what I do. Can you help, please?
  •  
  • Colin Harman 2 years ago
    {

    function makeSubs() {
    var layer = app.project.activeItem.selectedLayers[0];

    if (layer.property("sourceText") != null) {
    var textFile = fileGetDialog("Select a text file to open.", "");
    if (textFile != null) {
    var textLines = new Array();
    textFile.open("r", "TEXT", "????");

    while (!textFile.eof)
    textLines[textLines.length] = textFile.readln();

    textFile.close();

    var sourceText = layer.property("sourceText");
    var markers = layer.property("marker");

    for (var i = sourceText.numKeys; i >= 1; i--)
    sourceText.removeKey(i);

    var line = 0;
    var subTime, subText;
    for (var i = 1; i <= markers.numKeys; i++) {
    subTime = markers.keyTime(i);
    sourceText.setValueAtTime(0, " ");

    if ((i % 2) == 0) {
    subText = " ";
    }
    else {
    subText = textLines[line].replace("|", "\x0d\x0a");
    line++;
    }
    sourceText.setValueAtTime(subTime, new TextDocument(subText));
    }
    }
    }
    }
    makeSubs();
    }]


    This will altered version i made does work. before it was declaring a variable type that need not be declared, leave it null and it will work seamlessly. Let me know if you have any other trouble.
  •  
  • !Rocky 2 years ago
    Updated the script.
    Thanks, Colin :)
  •  
  • Thank you!
  •  
  • simonun 1 year ago
    Awesome, Works Perfectly
  •  
This conversation is missing your voice. Take five seconds to join Vimeo or log in.

Advertisement

About this video

FLV
00:00:10
  • 320x240, 0.11MB
  • Uploaded Thu December 18, 2008
  • Please join or log in to download

Statistics

Date Plays Comments
Totals 5,674 4 11
Feb 15th 6 0 0
Feb 14th 9 0 0
Feb 13th 9 0 0
Feb 12th 4 0 0
Feb 11th 6 0 0
Feb 10th 8 0 0
Feb 9th 8 0 0