Forum Replies Created

  • Hello again!

    Just came up with a solution. I’m sharing it in case anyone else has the same problem. For a 2-dimensional property, the correct form of the expression is:

    if (numKeys > 1){

    v1 = valueAtTime(key(1).time);

    v2 = valueAtTime(key(2).time);

    newV2 = (link to slider);

    x = linear(value[0],v1[0],v2[0],v1[0],newV2);

    y = (value of choice);

    [x,y]

    }

    else{
    value
    };

    If you are looking to change the y value, change the zeroes for “1” and invert “x = ” with “y = “. And there we have it 😎

  • Alekos Mazzolotti

    June 24, 2020 at 3:24 am in reply to: Adding function to an expression

    Man, I love this forum ?

    Ended up with my own combined function, to ease cubic in and exponential out. Turns out all I really needed was to get this function thing right. Never used it before.

    I’ll share my final result in a simplified version, case anyone desires to make good use of it.

    Thanks a lot for your help =)

    myEase = function (t, b, c, d) {
    t /= d/2;
    if (t < 1) return c/2*t*t*t + b;
    t --;
    return c/2 * ( -Math.pow( 2, -10 * t) + 2 ) + b;
    };

    dur = 1
    myEase(time-inPoint,1,100,dur)

  • Wonderful!

    One last question: how do I like your answer a thousand times? ahahahah

    Thanks a huge lot, friend.

  • Beautiful! Works as clock!!

    Just out of curiosity, what if I were to apply the same concept to the “offset” property, in ramp up mode, that, instead of going from 0 to 100, must be set to variate from -100 to +100?

    Thanks a huge lot for your help!

  • Alekos Mazzolotti

    April 25, 2020 at 6:19 pm in reply to: Random opacity on specific way

    Magnificent!

    It worked perfectly. Thanks a whole lot, friend!

  • Alekos Mazzolotti

    April 24, 2020 at 8:16 pm in reply to: Random opacity on specific way

    Sure!

    Here, that’s what I did manually:

    In this example, as I said, there is no real randomness, for I used keyframes and a loopout expression in a manner that created more or less the same effect.

    Can I create this behavior via expression?

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