Forum Replies Created

  • Hey Vitaly,

    did you find a solution to this? Having the exact same problem. Or i also want to drive the distortion mesh with expression.

  • Jacob Resch

    May 29, 2019 at 9:48 am in reply to: Adding Inertia or Bounce on a Shape Layers Path?

    Just wanted to add to this as the initial expression doesn’t have an amplitude which you can adjust.
    n = 0;
    if (numKeys > 0){
    n = nearestKey(time).index;
    if(key(n).time > time) n--;
    }
    if (n > 0){
    p0 = thisProperty.points(key(n).time - thisComp.frameDuration/10);
    p1 = thisProperty.points(key(n).time);
    p = [];
    pCur = thisProperty.points();
    t = time - key(n).time;
    freq = 3.0;
    decay = 5.0;
    amplitude = 0.08
    m = (amplitude * Math.sin(freq*t*2*Math.PI))/Math.exp(decay*t);
    for (i = 0; i < p0.length; i++){
    v = (p1[i] - p0[i])*10*m;
    p.push(pCur[i] + v);
    }
    createPath(p,thisProperty.inTangents(),thisProperty.outTangents(),thisProperty.isClosed());
    }else
    value

    added an amplitude to this

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