Forum Replies Created

  • Keith Endow

    January 29, 2021 at 6:40 pm in reply to: Min & Max Values

    Oh, that fixed it. Weird. I just swapped out the dash with a ‘-‘ and it resolved the issue. Thanks!

  • Keith Endow

    January 29, 2021 at 6:24 pm in reply to: Min & Max Values

    Hi Dan,

    I just tried using this expression but I keep coming up with an error:

    minVal = 15;
    maxVal = 21;
    freq = 1;
    amp = 110;
    loopTime = 3;
    t = time % loopTime;
    w1 = wiggle(freq, 1, 1, 0.5, t)-value;
    w2 = wiggle(freq, 1, 1, 0.5, t – loopTime)-value;

    “Error: Syntaxerror: Missing ) after argument list”

    w = linear(t, 0, loopTime, w1, w2);
    (minVal+maxVal)/2 + (maxVal-minVal)*w

  • Keith Endow

    July 27, 2017 at 4:13 pm in reply to: Looping noise with lateral movement

    I understand the Loop Period & Animation Speed settings but I realized that it only loops the evolution of the noise shader. I have the noise shader moving from Right to left and the loop settings do not take position into account. Ideally there would be a drift on the noise and it would loop. Hope that makes sense.

  • Just downloaded and loaded Ease and Wizz. What an awesome script!

    So now that I’m looking at the code, is there any way to have a slider control change the values of the keyframes?

    SliderPoint = thisComp.layer("CONTROLLER").effect("BLACK_BOX_LENGTH")("Slider");

    // Ease and Wizz 2.5.2 : outExpo : All keyframes
    // Ian Haigh (https://aescripts.com/ease-and-wizz/)
    // Last built: 2017-01-09T15:35:09+11:00

    function easeandwizz_outExpo(t, b, c, d) {
    var OUT_EXPO_CORRECTION = 1.000976;
    return (t==d) ? b+c : c * OUT_EXPO_CORRECTION * (-Math.pow(2, -10 * t/(d)) + 1) + b;
    }

    function easeAndWizz() {
    var n = 0;
    if (numKeys > 0) {
    n = nearestKey(time).index;
    if (key(n).time > time) { n-- }
    }

    try {
    var key1 = key(n);
    var key2 = key(n+1);
    } catch(e) {
    return null;
    }

    // determine how many dimensions the keyframes need
    var dim = 1; // It's gotta have at least ONE dimension
    try {
    key(1)[1];
    dim = 2;
    key(1)[2];
    dim = 3;
    } catch(e) {}

    t = time - key1.time;
    d = key2.time - key1.time;

    sX = key1[0];
    eX = key2[0] - key1[0];

    if (dim >= 2) {
    sY = key1[1];
    eY = key2[1] - key1[1];

    if (dim >= 3) {
    sZ = key1[2];
    eZ = key2[2] - key1[2];
    }
    }

    if ((time < key1.time) || (time > key2.time)) {
    return value;
    } else {
    val1 = easeandwizz_outExpo(t, sX, eX, d);
    switch (dim) {
    case 1:
    return val1;
    break;
    case 2:
    val2 = easeandwizz_outExpo(t, sY, eY, d);
    return [val1, val2];
    break;
    case 3:
    val2 = easeandwizz_outExpo(t, sY, eY, d);
    val3 = easeandwizz_outExpo(t, sZ, eZ, d);
    return [val1, val2, val3];
    break;
    default:
    return null;
    }
    }
    }

    (easeAndWizz() || value);

  • Thank you Dan!

    Would you know where I can read up more on how to implement Penner’s functions in this situation?

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