Forum Replies Created

Page 47 of 1081
  • If you apply the expression to a slider, for example, I guess you try smoothing that result in another slider, with something like this:

    s = effect("Data Slider")("Slider");
    s.smooth(.2,5)
  • Dan Ebberts

    May 12, 2023 at 8:53 pm in reply to: Randomly wobble each letter to rest

    I think in order to craft the rotation expression you’d have to know how to detect the triggering event (which I guess might be the end of the position animation), but to do that, we’d have to know exactly how you’re accomplishing that animation.

  • I’d start with something like this maybe:

    data = footage("test json.json").sourceData;
    dataRate = 30;
    idx = clamp(Math.round(time*dataRate),0,data.length-1);
    x = data[idx].x;
    y = data[idx].y;
    [x,y]
  • Dan Ebberts

    May 10, 2023 at 10:50 pm in reply to: Scale composition without ruining expressions?

    Can you post a simple example project file where scaling causes this issue?

  • Dan Ebberts

    May 9, 2023 at 10:15 pm in reply to: Randomly wobble each letter to rest

    How are you animating the opacity and position?

  • I don’t think there’s any way to do that. An alternative might be to create a pseudo effect, which would allow you to define the slider range and apply the slider via a .ffx file, but you’d have to define the range when you create the pseudo effect, not when you run the script.

  • Dan Ebberts

    May 8, 2023 at 9:13 pm in reply to: expression affecting expression

    I set it up, and the animation of Text layer B is pretty much what I’d expect, based on what’s happening to the width of Text layer A as the animation unfolds. Maybe you could post a screen shot of your settings and maybe a shot of the graph editor for Text layer B’s position?

  • Try this:

    var comp = app.project.activeItem;
    var props = comp.selectedProperties;
    for (var i = 0; i < props.length; i++) {
    if (props[i].matchName == "ADBE Vector Group"){
    props[i].property("ADBE Vectors Group").addProperty("ADBE Vector Filter - Trim");
    }
    }
  • Dan Ebberts

    May 4, 2023 at 6:36 am in reply to: multiple linear() in one expression.

    You could certainly do it, but you’d probably have to collect all the linear() results into some sort of accumulator variable (I’m guessing–I’m still not picturing how you would actually use it).

  • Dan Ebberts

    May 4, 2023 at 6:06 am in reply to: Rotation Decay Auto with Ease In on Inpoint ??

    It depends on what you mean exactly. Maybe something like this:

    freq = 3;
    amplitude = 50;
    decay = 6;
    easeTime = 1;
    if (time >= inPoint){
    val = amplitude*Math.sin(freq*time*2*Math.PI)/Math.exp(decay*(time-inPoint));
    easeIn(time,0,easeTime,0,val)
    }
    else{value}
Page 47 of 1081

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