Forum Replies Created

Page 51 of 65
  • For the delay you should use valueAtTime function:

    delay = 0.1;
    slid=thisComp.layer("Scale Slider").effect("Slider Control")("Slider").valueAtTime(time-delay);
    temp = slid*1.2+75;
    [temp, temp]

    As for all of them getting to zero, i think you should go minus with the slider and modify the opacity or just cut the layers that go beyond 0.

    Andrei
    My Envato portfolio.

  • Andrei Popa

    May 8, 2019 at 12:36 pm in reply to: value error

    Last time i saw this kind of error was because the expression was written in french and the minus was actually a dialogue line. So if you don’t use english keyboard, some sign there may be something else than you think. If you copy paste your expression here and the other one, i could investigate to see which one.

    Andrei
    My Envato portfolio.

  • Andrei Popa

    April 18, 2019 at 1:32 pm in reply to: text paragraph expression

    I see. Maybe apply this to anchor point?

    var myHeight = sourceRectAtTime(time,false).height;
    var top = sourceRectAtTime(time,false).top;
    [value[0],myHeight+top]

    Andrei
    My Envato portfolio.

  • Andrei Popa

    April 18, 2019 at 7:48 am in reply to: text paragraph expression

    You can add Line Spacing animator and set the second value to negative.

    Andrei
    My Envato portfolio.

  • Eval thing goes even beyond. You can even use evalfile() to get an expression from a text layer. I don’t use very complicated expressions, but for those who do, a nice text editor like Atom, Sublime etc. in which to write your expressions could be of use. Here’s a link to an youtube tutorial about this thing https://www.youtube.com/watch?v=NXkKGd-6T5s

    My point is, you can paste the eval expression to all the layers and then use the external file to modify it for all at once.

    Andrei
    My Envato portfolio.

    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.

  • Andrei Popa

    April 2, 2019 at 8:01 am in reply to: AE Script to copy layers from comp to comp

    If you want to copy all the layers, null included, i don’t think you should worry about the parenting. And to do that, use something like this.
    You must declare comp1 and comp2 according to your project. I suggest searching the rd_GimmePropPath script to easily find out that.


    comp1 = app.project.item(1);
    comp2 = app.project.item(2);

    comp1.openInViewer();
    for (i = 1; i <=comp1.numLayers; i++){
    comp1.layer(i).selected = true;
    }

    app.executeCommand(19); //Copy
    comp2.openInViewer();
    app.executeCommand(20); //Paste

    Andrei
    My Envato portfolio.

  • Andrei Popa

    April 2, 2019 at 7:54 am in reply to: Expression to jump back into first position

    Not entirely sure about what you want to achieve, but this could be helpful. Modify maxDistance for a wider circle

    r = thisComp.layer("RocketShip - Rotator").transform.yRotation;
    maxDistance = 1000;

    value - Math.sin(Math.PI*r/180)*maxDistance;

    Andrei
    My Envato portfolio.

  • Andrei Popa

    March 27, 2019 at 8:43 am in reply to: Create Masks From Text on Multiple Layers

    I’m sorry i respond this late, been quite busy lately. Yes, i have a solution. Replace “app.executeCommand(3781);” with “app.executeCommand(2933);”. If you wonder where i got that id number, here is a link to a pdf that provides all menu ids.

    Andrei
    My Envato portfolio.

  • Andrei Popa

    March 25, 2019 at 8:07 am in reply to: Create Masks From Text on Multiple Layers

    Select your desired layers and then run this script.


    app.beginUndoGroup('Create Shapes From Multiple Texts');
    var myComp = app.project.activeItem;
    var selectedLayers = myComp.selectedLayers;
    for (var i = 0; i < selectedLayers.length; i++){
    deselectEverything(myComp);
    selectedLayers[i].selected = true;
    createMasksFromText(selectedLayers[i]);
    }
    app.endUndoGroup();

    function createMasksFromText(myLayer){
    if(myLayer.sourceText != null){
    app.executeCommand(3781);
    }else{
    alert(myLayer.name + " is not a text layer.")
    }
    }

    function deselectEverything(myActiveComp) {
    mySelectedItems = myActiveComp.selectedLayers;
    for (var i = 0; i < mySelectedItems.length; i++){
    mySelectedItems[i].selected = false;
    }
    }

    Andrei
    My Envato portfolio.

  • I assume your mid 2 keyframes are equal. If you use normal ease or no ease, you can do this:

    pointControl = thisLayer("Effects")("Point Control")("Point");
    time1 = key(1).time;
    time2 = key(2).time;
    time3 = key(3).time;
    time4 = key(4).time;

    if (time < time1) {
    value;
    } else if (time < key(2).time) {
    ease(time, time1, time2, valueAtTime(time1), pointControl);
    } else if (time < time3) {
    pointControl;
    } else if (time < time4) {
    ease(time, time3, time4, pointControl, valueAtTime(time4));
    } else value;

    If you use no ease, just replace ease with linear. If you need further clarification and/or help, don’t hesitate to ask.

    Andrei
    My Envato portfolio.

Page 51 of 65

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