Forum Replies Created

Page 13 of 15
  • Adam Greenberg

    September 20, 2021 at 2:47 pm in reply to: Sourcetext ignore ( or create ) line breaks

    yes, thanks, I think it’s a good option. But I’m not fully sure how to write that out

  • Adam Greenberg

    September 14, 2021 at 6:54 pm in reply to: Sourcetext ignore ( or create ) line breaks

    That’s fantastic Andrei. Thanks so much.

    To get the opposite result, I wonder if it’s not possible.

    The best I can think of is a similar but opposite expression linked to a slider somehow. Like the slider would represent which space turns into a line break.

    Just a thought.

  • Adam Greenberg

    September 13, 2021 at 8:17 pm in reply to: Text building upwards and ignoring descenders

    Oh I had to set my anchor point at the bottom. Forgot about that.

    THANKS sooooo much.

    But does anyone have any advice for me as far as the java script setting goes. Id like it to work in legacy extended script if possible.

  • Adam Greenberg

    September 13, 2021 at 7:32 pm in reply to: Text building upwards and ignoring descenders

    if i switch off of legacy, and pick regular javascript then it works, but everytime the text has another line added, it keeps going lower and lower. I need the last line of text to be in the same place. So the text need to go up everytime we add a line.

  • Adam Greenberg

    September 13, 2021 at 5:55 pm in reply to: Text building upwards and ignoring descenders

    its paragraph text, the user will press enter, but if he doesnt there will be a forced line break as to not go to far. Do I copy that expression into anchor point ? it is giving me an error. see image

  • Adam Greenberg

    May 26, 2021 at 6:19 pm in reply to: better than ease ?

    Oh that`’s really interesting, I would never think that would work. I guess one would keep the old way if you were to attribute different functions for the x then the y

  • Adam Greenberg

    May 25, 2021 at 10:49 pm in reply to: better than ease ?

    Wow. seemless. Works perfectly. I need to study this more in depth to better understand what s going on.

    And Kevin. I will need to try yours as well because I think I know a project we have somewhere that needs somethnig like this.


    Thanks to both of you. Much appreciated.


    Adam

  • Adam Greenberg

    May 25, 2021 at 6:05 pm in reply to: better than ease ?

    yes, this is the code that was in the project

    // Ease and Wizz 2.0.1 : inOutExpo : All keyframes

    // Ian Haigh (http://ianhaigh.com/easeandwizz/)

    // Last built: 2010-10-09T13:35:40+11:00

    // some defaults

    var p = 0.8; // period for elastic

    var a = 50; // amplitude for elastic

    var s = 1.70158; // overshoot amount for “back”

    function inOutExpo(t, b, c, d, a, p) {

    if (t==0) return b;

    if (t==d) return b+c;

    if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t – 1)) + b;

    return c/2 * (-Math.pow(2, -10 * –t) + 2) + 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 = inOutExpo(t, sX, eX, d, a, p, s);

    switch (dim) {

    case 1:

    return val1;

    break;

    case 2:

    val2 = inOutExpo(t, sY, eY, d, a, p, s);

    return [val1, val2];

    break;

    case 3:

    val2 = inOutExpo(t, sY, eY, d, a, p, s);

    val3 = inOutExpo(t, sZ, eZ, d, a, p, s);

    return [val1, val2, val3];

    break;

    default:

    return null;

    }

    }

    }

    (easeAndWizz() || value);

  • Adam Greenberg

    May 25, 2021 at 5:43 pm in reply to: better than ease ?

    yes it seems quite complicated, maybe I can do trial and error, Would you be able to give me an example of what part of the expression I would have to modify ?

  • Thanks so much Dan. I had no idea there was a time parameter in the tocomp. Makes total sense once you know that, and impossible to solve if you don’t.

    Have a great week. Thanks again.

Page 13 of 15

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