Forum Replies Created

Page 39 of 1081
  • Dan Ebberts

    October 20, 2023 at 9:44 pm in reply to: Help writing script to rotate layer on Y-Axis

    All of the interpolators return the min value (0 in this case) before the interval and the max value (360) after the interval. But since the ease() interval happens at the end of each 3-second interval, there is no “after”, only “before” and “during”. Make sense?

  • Dan Ebberts

    October 20, 2023 at 4:17 pm in reply to: Help writing script to rotate layer on Y-Axis

    Something like this maybe:

    spinInt = 3; // spin interval
    spinDur = .25; // spin duration
    y = linear(time,0,30,-35,35);
    t = time%spinInt;
    spin = ease(t,spinInt-spinDur,spinInt,0,360);
    y + spin
  • Dan Ebberts

    October 20, 2023 at 6:08 am in reply to: Set sourceText of another layer?

    An expression can only change the value of the property where that expression exists, so no, you can’t change a layer’s source text from an expression applied somewhere else.

  • Dan Ebberts

    October 15, 2023 at 2:54 pm in reply to: Where to write setProperty script

    You can probably create your script in any simple text editor that will generate a plain text file. Notepad will work on Windows.

    I’m not 100% sure, but I think it’s unlikely that there’s an AE UI event that you could attach to so that your script would run automatically when you change something in a comp. You’re probably stuck launching the script manually.

  • Dan Ebberts

    October 13, 2023 at 6:26 am in reply to: Where to write setProperty script

    This is a script, so you would save it as a .jsx file, and then execute it via the menu File > Scripts > Run Script File > (navigate to the script).

  • Dan Ebberts

    October 11, 2023 at 7:27 pm in reply to: Random scale up of multiple objects.

    Like this maybe:

    maxTime = 3.5;
    fadeFrames = 12;
    minScale = 75;
    maxScale = 100;
    fadeDur = framesToTime(fadeFrames);
    seedRandom(index,true);
    myStart = random(maxTime - fadeDur);
    myScale = random(minScale,maxScale)
    s = easeOut(time,myStart,myStart+fadeDur,0,myScale);
    [s,s]
  • Dan Ebberts

    October 11, 2023 at 6:47 pm in reply to: Random scale up of multiple objects.

    Something like this maybe (for scale):

    maxTime = 3.5;
    fadeFrames = 12;
    fadeDur = framesToTime(fadeFrames);
    seedRandom(index,true);
    myStart = random(maxTime - fadeDur);
    s = easeOut(time,myStart,myStart+fadeDur,0,100);
    [s,s]
  • Dan Ebberts

    October 5, 2023 at 7:31 pm in reply to: Getting active layer count at current time

    Like this maybe:

    total = 0;
    for (i = 1; i < index; i++){
    if (thisComp.layer(i).opacity == 100){
    total += thisComp.layer(i).sourceRectAtTime(time,false).width;
    }
    }
    total
  • Dan Ebberts

    September 26, 2023 at 12:22 am in reply to: Change opacity every n-frames

    Which expression are you using, and how do you want the fade to work?

  • Try it this way:

    maxW = thisComp.width*0.9;
    maxH = thisComp.height*0.15;
    r = sourceRectAtTime(time);
    w = r.width;
    h = r.height;
    s = h > 0 ? (w/h > maxW/maxH ? maxW/w : maxH/h) : 0;
    [100,100]*s
Page 39 of 1081

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