Forum Replies Created

  • Johanna Peterson

    September 20, 2012 at 11:50 pm in reply to: How to create Text markers using script?

    You are amazing Dan! Thanks a lot!

  • Johanna Peterson

    September 20, 2012 at 3:03 pm in reply to: How to create Text markers using script?

    Hi Dan, thanks for this. This is helpful too, but what I really wanted to do is if say for example, I have these time codes (0;01;00;08, 0;01;03;03, 0;01;03;04, 0;01;05;09, 0;01;05;10) were I need to put the Marker on my Text Layer how do you do that in script? I really dont need the Marker Value at the moment, just placing the Markers into the Text layer.

    Like this:

    THanks Dan!

  • Johanna Peterson

    September 19, 2012 at 6:43 pm in reply to: How to create Text markers using script?

    Hello again! Im sorry if I didn’t explain it in the beginning on how it will help me. I’m actually using the subtitle script online, that loads the subtitles from a text file and creates the Text Keyframes from the created Markers on the Text layer. I’ve added the markers manually by inputting the timecodes on the timeline. So I was wondering how to possibly create the Markers on the Text layers without doing it manually. I have the all time codes were the subtitles should appear. Thank you!

  • Thank you so much Dan!

  • Oh yeah I think I had a lucky guess on the changes on the script. It worked for me 🙂

    here is how I’ve tried changing them:

    {
    function main(){
    var myComp = app.project.activeItem;
    if ((myComp == null) || ! (myComp instanceof CompItem)){
    alert("No comp selected.");
    return;
    }
    if (myComp.selectedLayers.length == 0){
    alert("No layer selected.");
    return;
    }
    var myLayer = myComp.selectedLayers[0];
    if (!(myLayer instanceof TextLayer)){
    alert("Selected layer is not text layer");
    return;
    }
    var myProp = myLayer.property("Text").property("Source Text");
    for (var i = myProp.numKeys; i > 1; i--){
    if (myProp.keyValue(i) == " "){
    myProp.removeKey(i);
    }
    }
    }
    main();
    }

    Thanks Dan for the script~! 🙂

    For my last question, how do you modify the script if I wanted to select multiple text layers in the composition and delete these keyframes with space in text layers? THANKS!

  • I probably had a mistake on identifying what’s on the Text Layer. It looks like its empty but when I selected that keyframe it had that “blank space” or ” ” in that keyframes. Can you help me on the script modifications?

    Screenshot on the keyframe to delete:

    spaceintext-keyframesnotemptytext.png

    Thank you !

  • Hi Dan,

    Thank you for your response! You’re right Empty text meaning No Text. I’m not really good at scripting and I might be doing it incorrectly. When I tried saving the code into .jsx and run the script with the selected text layer, it didn’t work for me. I’m using AE CS5 in Mac, i’m uncertain if there should be added/changed values in the script to work on Mac or if there are other things I need to do.

    This is how I hope it would happen so then I can just delete them all at once.

    I appreiate your help. Thanks!

    Johanna

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy