Forum Replies Created

Page 2 of 3
  • Sergio Cabrera

    June 5, 2019 at 6:13 am in reply to: Making template lighter

    Yes, you’re correct Tomas, I had to disable the auto-save function.

    It is a project that I use as template to create videos for clients, depending on their scripts I would take the scenes that match the script. It includes shapes that dynamically change size to fit the amount of text.

    Some effects require pre-composing which doubles the amount of compositions in the project.

    This is what I’ve done:

    1- Used default color/layer/slider controls to avoid using 1 more layer per scene. (Reduced 600 layers)
    2- Pre-rendered every non-dynamic compositions and deleted hundreds of compositions. (Reduced 150 layers)
    3- Started using -noui and rendering from jsx, so it won’t load graphic interface. (Reduced loading time)

    It helped a bit, but it seems like importing pre-rendered PNG sequences or MOV Alpha files from the SSD’s takes some time as well… So I’m not pretty sure if that helped or not, the render time was lower this way for sure, but not changed a lot the project opening time.

  • Sergio Cabrera

    June 3, 2019 at 12:47 am in reply to: AE script to make layers appear

    Hello, it depends on what you mean by “appear”. You could make a hidden layer visible with the following script line:

    app.project.item(1).layer(1).enabled = true;

    And this to hide the layer:

    app.project.item(1).layer(1).enabled = false;

    Make sure to specify the item and layer numbers correctly.

  • Sergio Cabrera

    May 28, 2019 at 5:23 am in reply to: Audio Volume Down at the end

    Yes, -45,-45 works pretty nice. Thank you both!

  • Sergio Cabrera

    May 28, 2019 at 2:54 am in reply to: Audio Volume Down at the end

    I mean, easeOut is suposed to smooth at the end but it’s too abrupt anyway, any way to make the leveling smoother?

  • Sergio Cabrera

    May 28, 2019 at 2:43 am in reply to: Audio Volume Down at the end

    Thank you Dan, you are amazing.

    What “easeOut” alternatives are? It cuts the audio too abruptly even at 3 or 4 seconds, I need to make it smoother, like linear out?

  • Sergio Cabrera

    May 16, 2019 at 2:10 am in reply to: Script – Use name instead of indexed number

    Thank you Dan!

  • Sergio Cabrera

    May 14, 2019 at 3:35 pm in reply to: Script – Use name instead of indexed number

    Thank you. One more question, can copyToComp() be used to copy a comp to another comp or it only works with layers?

  • Sergio Cabrera

    May 14, 2019 at 2:38 am in reply to: Script – Use name instead of indexed number

    Working great, sorry, I was having problems understanding the function, my ego would like to blame the lack of coffee. Thank you so much Dan, you’re a god at this! You make it look so easy.

    function getComp(theName){
    for (var i =1; i <= app.project.numItems; i++){
    if ((app.project.item(i) instanceof CompItem) && (app.project.item(i).name == theName)){
    return app.project.item(i);
    }
    }
    return null;
    }

    // test
    var compName = "Comp1";
    var myComp = getComp(compName);

    var NewCompositionName = "Comp 2"

    function renameComposition(newName) {
    var curComp = null;
    curComp = getComp(compName);
    curComp.name = newName;
    }

    renameComposition(NewCompositionName)

  • Sergio Cabrera

    May 14, 2019 at 2:30 am in reply to: Script – Use name instead of indexed number

    There is kinda a loop or I’m not understanding the function, I start by knowing the comp name and at the end of the function I get the same name I knew at the start.

    alert (myComp); would retrieve: [object CompItem] instead of app.project.item(1) which is “Comp 1”

    How do I add some actions to the “Comp 1” composition? Can you show me an example of renaming “Comp 1” composition name or some other action to get a clear idea?

    I was hoping to do something like this:

    var newname = "Comp 2"

    function renameComposition(newName) {
    var curComp = null;
    curComp = app.project.item(1);
    curComp.name = newName;
    }

    renameComposition(Comp 2)

    But replacing app.project.item(1); with myComp:

    var compositionName = "Comp 2"

    function renameComposition(newName) {
    var curComp = null;
    curComp = myComp
    curComp.name = newName;
    }

    renameComposition(compositionName)

  • Sergio Cabrera

    May 11, 2019 at 9:06 pm in reply to: SourceRectAtTime text

    Found the solution. Had to create an offset variable containing the height of the text/2, then position equals x,y-offset on the position attribute of the text layer, so the text is always vertically aligned (I’m wondering why AE doesn’t comes with this feature in the Paragraph section, seems pretty useful).

Page 2 of 3

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