Forum Replies Created

  • Evan Jenkins

    May 6, 2020 at 6:39 pm in reply to: Get source text from file name

    Dan you are a creative genius, your code is amazing. I will be using this technique to get the file name and check for certain words that will trigger automation. I’ve learned a lot javascript in AE from your posts thanks for your good work.

    Evan Jenkins
    Aspen Films Inc.
    aspenfilms.ca

  • I gave up out of trying to get the code out of a text layer, there was something wrong with what I was doing but I couldn’t figure it out.

    I actually had more success with getting the code out of the comments of a layer marker, which also has the advantage of letting me scroll through a little easier to access the code.

    I got the idea from this video:

    https://www.youtube.com/watch?v=MX4dUF0J5x0

    eval(thisComp.layer("Set Global Variables").marker.key(1).comment);

    Evan Jenkins
    Aspen Films Inc.
    aspenfilms.ca

    Some contents or functionalities here are not available due to your cookie preferences!

    This happens because the functionality/content marked as “Google Youtube” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.

  • I think I’m making progress, now it says “Syntax Error”

    The .value seemed to work.

    Also I saw an old post on the forum where you can add “””Code Here””” (triple quotes) in the text layer to make sure you’re converting everything into a single character string.

    I’m still working at it trying to resolve the error.

    Evan Jenkins
    Aspen Films Inc.
    aspenfilms.ca

  • Thanks I copied and pasted my code into the text layer and then added the eval, but I got an error, it says Object of type TextProperty found where a Number, Array, or Property is needed

    Evan Jenkins
    Aspen Films Inc.
    aspenfilms.ca

  • Evan Jenkins

    March 29, 2020 at 6:25 pm in reply to: Expression that auto fits placeholder to comp.

    Yes go to the scale property of your placeholder and add an expression.

    lw = thisLayer.width;
    lh = thisLayer.height;
    cw = thisComp.width;
    ch = thisComp.height;
    x = 100;
    y = 100;

    aRC = cw/ch;
    arL = lw/lh;

    if(arL > aRC){
    x = cw/lw*100;
    y = x
    }else {
    y = ch/lh*100;
    x = y
    }

    [x,y]

    Evan Jenkins
    Aspen Films Inc.
    aspenfilms.ca

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