Forum Replies Created

Page 20 of 1081
  • Dan Ebberts

    July 18, 2024 at 3:16 pm in reply to: Changing word color in the last of the text

    Like this:

    n = 2; // number of words to highlight
    textTotal - textIndex < n ? 100 : 0
  • Dan Ebberts

    July 18, 2024 at 2:25 pm in reply to: Changing word color in the last of the text

    One way would be to add an Expression Selector, delete the Range Selector, set the Expression Selector’s Based On to Words and use this expression for the Expression Selector’s Amount:

    textIndex == textTotal ? 100 : 0
  • See if this gets you close:

    freq = .25;
    decay = 20;
    delay = .05;
    dur = .15;
    myDelay = (textIndex-1)*delay;
    if (time < (inPoint+outPoint)/2){
    t = time - (inPoint + myDelay);
    }else{
    t = outPoint - myDelay - time+ -.1;
    }
    startVal = 100;
    endVal = 0;
    if(t < dur){
    linear(t,0,dur,startVal,endVal);
    }else{
    amp = (endVal - startVal)/dur;
    w = freq*Math.PI*2;
    endVal + amp*(Math.sin(t*w)/Math.exp(decay*t)/w);
    }
  • Dan Ebberts

    July 4, 2024 at 6:25 pm in reply to: What does “health” do in AE expressions?

    Just curious Paul, how did you get to “health”? I can’t repro that.

  • That’s pretty much it. I used that simple form in the first expression because I was assuming that the first keyframe was at time = zero. If that isn’t the case, you have to use the more complex form that involves the times of both the first and last keyframes.

  • Can you post a screenshot of the timeline that includes the scale keyframes for the map layer?

  • It’s hard to tell from what you’ve posted. Is the map zooming happening because you’re scaling the map layer, or is the scaling happening inside a map precomp, or is there a camera move involved? Unless you’re moving or scaling the layer that the markers are parented to, I wouldn’t expect them react.

  • Dan Ebberts

    June 21, 2024 at 3:31 am in reply to: Incremental Animation based on Layers or Markers

    I think that would be like this:

    n = 0;
    trig = 0;
    for (i = 1; i <= thisComp.numLayers; i++){
    if (i == index) continue;
    if (thisComp.layer(i).name.indexOf("L_") == 0){
    if (time > thisComp.layer(i).inPoint){
    n++;
    trig = Math.max(trig,thisComp.layer(i).inPoint);
    }
    }
    }
    if (n > 0){
    d = key(numKeys).value - key(1).value;
    key(numKeys).value + (n-2)*d + valueAtTime(key(1).time + (time - trig)) - key(1).value
    }else{
    key(1).value;
    }
  • Dan Ebberts

    June 20, 2024 at 6:51 am in reply to: Incremental Animation based on Layers or Markers

    I think this will work for your layer in point scenario:

    n = 0;
    trig = 0;
    for (i = 1; i <= thisComp.numLayers; i++){
    if (i == index) continue;
    if (thisComp.layer(i).name.indexOf("L_") == 0){
    if (time > thisComp.layer(i).inPoint){
    n++;
    trig = Math.max(trig,thisComp.layer(i).inPoint);
    }
    }
    }
    if (n > 0){
    d = key(numKeys).value - key(1).value;
    key(numKeys).value + (n-1)*d + valueAtTime(key(1).time + (time - trig)) - key(1).value
    }else{
    value;
    }
  • I think that would be like this:

    first = key(2).value;
    second = key(3).value;
    newValue = effect("Length 25-80")("Slider");
    d = key(numKeys).time - key(1).time;
    if (time < key(1).time){
    t = key(numKeys).time - (key(1).time - time)%d;
    }else if (time > key(numKeys).time){
    t = key(1).time + (time - key(numKeys).time)%d;
    }else{
    t = time;
    }
    linear(valueAtTime(t), first, second, first, newValue);
Page 20 of 1081

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