Forum Replies Created

  • Jacob Thorup

    October 28, 2019 at 2:06 pm in reply to: Editing Source Text to remove a portion of the text

    Thanks for the help on this one!

  • Jacob Thorup

    October 24, 2019 at 5:15 pm in reply to: Editing Source Text to remove a portion of the text

    The first solution worked great as an expression, but when I try to implement it into my script it doesn’t seem to understand the “split” function.

    Here is the for Loop I’m using it in. “txt” is a global variable for layer 4 in my comp.

    for (var i = 1; i != numberOfSourceText + 1; i++){

    if (txt.property("Source Text").keyValue(i)){

    (txt.property("Source Text").keyValue(i).split("\r"))

    }
    }

    It kicks back the error “Function txt.propert().keyValue().split is undefined.”

    Do I need to import that functionality at the start of my script or something?

  • Jacob Thorup

    October 24, 2019 at 2:15 pm in reply to: Editing Source Text to remove a portion of the text

    First of all:
    This works Perfect!

    Second:
    I was actually wanting to know how to do this in a script, but I forgot to mention that in my post/question. My apologies.

    Is there a way to do this within a script as well?

    Thanks again!

  • Jacob Thorup

    October 17, 2019 at 3:02 pm in reply to: Move and Trim according to markers – AE scripting

    Thanks Dan!
    Worked a treat!

    Thanks for helping this Noob.

  • Jacob Thorup

    April 22, 2019 at 6:40 pm in reply to: Auto align layers

    Thanks for your reply. I decided to buckle down and try to learn how to create my own script and it worked!!!

    I’ve always avoided really learning to make a custom script, but this is really going to open up what I can do!

    Just for kicks, here is the script I wrote.

    This is going to save me 16+ hours, per market, of editing on a 180 episode series, where we have to change out sponsorship for different markets

    Thanks for the nudge.

    Jake

    //Comp Layers
    var theComp = app.project.activeItem;
    var logo = theComp.layer(1)
    var word = theComp.layer(2);
    var logoAnimate = theComp.layer(3);
    var head = theComp.layer(4);
    var endCard = theComp.layer(5);
    var body = theComp.layer(6);
    var bg = theComp.layer(7);

    //Script Functions
    function logoAlign(){
    (logoAnimate.startTime = head.outPoint - 1); //align the animation
    }

    function bodyAlign(){
    (body.startTime = logoAnimate.outPoint - 1); //align the body
    }

    function endCardAlign(){
    (endCard.startTime = body.outPoint - 1); //align the end card
    }
    function fades(){

    //Logo Animation fade up and down
    (logoAnimate.opacity.setValueAtTime (logoAnimate.outPoint - 1,100));
    (logoAnimate.opacity.setValueAtTime (logoAnimate.outPoint ,0));
    (logoAnimate.opacity.setValueAtTime (logoAnimate.startTime + 1,100));
    (logoAnimate.opacity.setValueAtTime (logoAnimate.startTime ,0));

    //End Card fade up.
    (endCard.opacity.setValueAtTime (endCard.startTime + 1,100));
    (endCard.opacity.setValueAtTime (endCard.startTime ,0));

    //Logo fade Up and Down.
    (logo.opacity.setValueAtTime (head.outPoint - 1,100));
    (logo.opacity.setValueAtTime (head.outPoint ,0));
    (logo.opacity.setValueAtTime (body.startTime + 1,100));
    (logo.opacity.setValueAtTime (body.startTime ,0));
    (logo.opacity.setValueAtTime (body.outPoint - 1,100));
    (logo.opacity.setValueAtTime (body.outPoint ,0));

    //Word fade Up and Down.
    (word.opacity.setValueAtTime (head.startTime + 3,0));
    (word.opacity.setValueAtTime (head.startTime + 3.5 ,100));
    (word.opacity.setValueAtTime (head.outPoint - 1,100));
    (word.opacity.setValueAtTime (head.outPoint ,0));
    (word.opacity.setValueAtTime (body.startTime + 1,100));
    (word.opacity.setValueAtTime (body.startTime ,0));
    (word.opacity.setValueAtTime (body.outPoint - 1,100));
    (word.opacity.setValueAtTime (body.outPoint ,0));
    }

    //Script Execution
    head.startTime = 0

    bg.startTime = 0

    word.startTime = 0

    logoAlign ()

    bodyAlign ()

    endCardAlign ()

    fades ()

    theComp.duration = body.outPoint + 15

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