Forum Replies Created

  • Thank you again Filip !

    I tested your code, works like a charm after 2 small errors updated. The final code is this :

    txt = thisComp.layer("text").text.sourceText;

    var val = "";

    var t = 0; // the fallback timing in case of error / non existing key

    // get the current text value

    if (txt.numKeys>1) {

    txtKey = txt.nearestKey(time);

    if (txtKey.time>time && txtKey.index>1) {

    val = txt.key(txtKey.index-1).value;

    } else {

    val = txtKey.value;

    }

    } else {

    val = txt.value;

    }

    // check for a marker on this layer that has the same name as mentioned in textLayer

    try {

    t = thisLayer.marker.key(val).time;

    } catch (e) {}

    // return the "preset" value at time t

    valueAtTime(t);

    This a very good start for me to go to where i want, AE looks promising. I did some animation with Davinci Resolve Fusion, but for shapes it’s not as precise, easy and clean looking than AE, it seems…

    Have a nice day 🙂

    Alex

    
    
    		
  • Thank you so much Filip !

    The first workaround seems promising, as interpolating is not that important to me 🙂

    As i’d need to be able to access much more than 4 gradients, is it possible to link the value to a marker which would have a name, as it would be much easier to retrieve than a keyframe’s time ?

    The expression would say : copy the settings stored at the marker named “Summer”.

    And maybe more generically, if i have a text layer is it possible to have an expression that says : look at the text’s changes, and copy the settings stored at the marker named [text value at this time] ?

    Your other workarounds look very useful too,

    Thank you again,

    Alex

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