Forum Replies Created

  • Michela Bruno

    March 14, 2019 at 1:03 pm in reply to: How to add two expressions to a single property?

    hello, what if the first expression is a bounce and the second a wiggle, but on the scale, and you want to keep scale proportions?

    below is the expression I need to modify to have a wiggle of
    w = wiggle(5,7);
    [w[0],w[0]]

    As it is now I’m using it on rotation and it works fine. I get a nice bounce that instead of ending it turns into a nice smooth wiggle.
    When I copy it on scale it works, but of course it doesn’t keep the proportions and plus it double the size of the object.

    Thank you

    amp = .3;
    freq = 2.0;
    decay = 3.0;
    n = 0;
    time_max = 4;
    if (numKeys > 0){
    n = nearestKey(time).index;
    if (key(n).time > time){
    n--;
    }}
    if (n == 0){ t = 0;
    }else{
    t = time - key(n).time;
    }
    if (n > 0){
    v = velocityAtTime(key(n).time - thisComp.frameDuration/10);
    amp = .3;
    freq = 2.0;
    decay = 3.0;
    value + v*amp*Math.sin(freq*t*2*Math.PI)/Math.exp(decay*t) + wiggle(1,1);
    }else{
    value+ wiggle(1,1);
    }

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