Forum Replies Created

  • Josh Good

    December 11, 2014 at 6:27 pm in reply to: text animator triggered by comp marker

    That did it.

    Works great now.

    Thanks again!

  • Josh Good

    December 11, 2014 at 2:17 pm in reply to: text animator triggered by comp marker

    Ok last question.

    I have the below expression applied to to amount property on the expression selector with the scale set at 0%.

    The scaling effect happens on every word each time the playhead hits a marker and I only need the effect to happen once per word. Is there a way to do that?

    -Thanks

    m = marker;
    n = 0;
    if (m.numKeys > 0){
    n = m.nearestKey(time).index;
    if (m.key(n).time > time) n--;
    }
    if (n > 0){
    t = time - m.key(n).time;
    startVal = 100;
    endVal = 0;
    dur =.2;
    if (t < dur){
    s = ease(t,0,dur,startVal,endVal)
    }else{
    amp = (endVal - startVal)/dur;
    freq = 3;
    decay = 10;
    w = freq*Math.PI*2;
    s = endVal + amp*Math.sin((t-dur)*w)/Math.exp(decay*(t-dur))/w
    }
    [s,s]
    }else
    value

  • Josh Good

    December 11, 2014 at 1:08 am in reply to: text animator triggered by comp marker

    Yeah you were right it was center-justified. It works perfect now!

    Thanks so much for your help!

    You the man Dan!

  • Josh Good

    December 10, 2014 at 9:25 pm in reply to: text animator triggered by comp marker

    Thanks for the quick reply!

    That worked great. But the text started in the center then changed positions when the rest of the text was added by the other markers.

    What I’m trying to do is have it animate on as a whole line of text like you can do by key framing the index property with the range selector in the text animator. I want the range index to be controlled by the layer markers. Do you know of anyway to do that?

    Thanks a bunch!

  • Josh Good

    December 10, 2014 at 5:30 pm in reply to: text animator triggered by comp marker

    I have a text layer, and the source text has an expression so it reads the comments inside the markers on the text layer.

    I’m wondering if there was a way to modify the expression so you can have the text from the previous marker still display after the play head hits the next marker. Just like you were animating a sentence with the text animator.

    The text marker expression is applied to the source text.
    The range selector is still on the text layer but the expression is added to the expression selector.

    Thanks in advance!

    /* This is applied to source text*/
    txt = value;
    n = 0;
    if (marker.numKeys > 0){
    n = marker.nearestKey(time).index;
    if (marker.key(n).time > time) n--;
    if (n > 0) txt = marker.key(n).comment;
    }
    txt

    /* This is applied to the scale expression selector*/
    m = marker;
    n = 0;
    if (m.numKeys > 0){
    n = m.nearestKey(time).index;
    if (m.key(n).time > time) n--;
    }
    if (n > 0){
    t = time - m.key(n).time;
    startVal = 100;
    endVal = 0;
    dur =.3;
    if (t < dur){
    s = linear(t,0,dur,startVal,endVal)
    }else{
    amp = (endVal - startVal)/dur;
    freq = 3;
    decay = 5;
    w = freq*Math.PI*2;
    s = endVal + amp*Math.sin((t-dur)*w)/Math.exp(decay*(t-dur))/w
    }
    [s,s]
    }else
    value

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