Forum Replies Created

Page 16 of 65
  • Andrei Popa

    July 3, 2021 at 3:02 pm in reply to: Expressions to edit and access text properties

    Unfortunately you can only change the style for the entire layer right now. I hope that in a future version Adobe would at least make it possible to change the font via text animators. Until then, all you can do is change the size/tracking/stroke of the font to mimic a bigger/bolder font. If the fonts you want to use are different typefaces entirely, I’m afraid there is no solution.

  • Andrei Popa

    July 3, 2021 at 2:58 pm in reply to: ExtendScript, refer to the layer by name

    It seems more likely that the problem is in selecting the composition. Try to select the layer like this and see if it works. Before running the script, select your comp either in the project panel or just select the timeline.

    var myComp = app.project.activeItem;
    var chkLayer = myComp.layer("Layer Name");
  • Andrei Popa

    July 2, 2021 at 3:00 pm in reply to: Trigger Time Remap with a Checkbox Control

    Time in expressions is in seconds. I think it jumps to 40 second, not frame. However, that is not important. Try this and tell me if it works:

    if (comp(“2.1a. Creator”).layer(“ICON_CTRL”).effect(“ICON_CTRL”)(“Checkbox”)== false) {
    0
    } else {
    endT = framesToTime(40);
    linear(time,0,endT,0,endT);
    }

    if you want the animation to start at the inPoint of the composition, use this:

    if (comp(“2.1a. Creator”).layer(“ICON_CTRL”).effect(“ICON_CTRL”)(“Checkbox”)== false) {
    0
    } else {
    endT = framesToTime(40);
    linear(time,inPoint+0,inPoint+endT,0,endT);
    }
  • Andrei Popa

    July 2, 2021 at 9:25 am in reply to: Reduce source text and add dots to text

    I am not sure how to share files here. I can give you a dropbox download link

    https://www.dropbox.com/s/rulpt42t65hfwy2/Reduce%20text.aep?dl=0

  • Andrei Popa

    July 2, 2021 at 9:20 am in reply to: Reduce source text and add dots to text

    It’s a little complicated so I will attach a working project for you to see what I did.

    So I made an invisible text on which I added an expression that starts at -1 frames and adds a letter each frame, going backwards.

    The first layer(the one you see) takes the sourceText from the invisible layer.

    To see the length that it should show, it goes and measures the invisible text each frame below zero. When it finds a larger value, it stops and shows the result. If the result is shorter than the initial text, it adds the 3 dots. You can control the width by the “Width Control” slider on the first layer.

    To modify the text, you need to modify the second layer. The first takes its value from this one.

  • I meant only replace value with wiggle. Like this:

    freq = 3;
    decay = 5;
    
    n = 0;
    if (numKeys > 0){
      n = nearestKey(time).index;
      if (key(n).time > time) n--;
    }
    if (n > 0){
      t = time - key(n).time;
      amp = velocityAtTime(key(n).time - .001);
      w = freq*Math.PI*2;
      wiggle(1,100) + amp*(Math.sin(t*w)/Math.exp(decay*t)/w);
    }else wiggle(1,100)
  • I think you can replace the “value” with “wiggle(1,100)”.

  • You can make a master layer, and add this expression to text

    function shuffle(array) {
    var currentIndex = array.length, randomIndex;
    // While there remain elements to shuffle...
    while (0 !== currentIndex) {
    // Pick a remaining element...
    randomIndex = Math.floor(Math.random() * currentIndex);
    currentIndex--;
    // And swap it with the current element.
    [array[currentIndex], array[randomIndex]] = [
    array[randomIndex], array[currentIndex]];
    }
    return array;
    }
    var arr = [1,2,3,4,5,6,7,8,9,10];
    "["+shuffle(arr).join(",")+"]"

    Then, to each layer add this expression. Assign firstIndex as the index of your first text layer.

    firstIndex = 2;

    val = eval(thisComp.layer("Master layer").text.sourceText)[index-firstIndex];

    val

  • Andrei Popa

    June 28, 2021 at 3:01 pm in reply to: Transitional colors

    Sergei Prokhnevskiy from Ukramedia has some really nice tutorials on Youtube. If you like those, you may consider buying his course on expressions.

  • Andrei Popa

    June 28, 2021 at 1:56 pm in reply to: Transitional colors

    Try this:

    c1=thisComp.layer("Color Control").effect("Color Control")("Color");

    c2=thisComp.layer("Color Control").effect("Color Control 2")("Color");

    c3=thisComp.layer("Color Control").effect("Color Control 3")("Color");

    c4=thisComp.layer("Color Control").effect("Color Control 4")("Color");

    slider = thisComp.layer("Color Control").effect("Slider Control")("Slider").value;

    myColors = [c1,c2,c3,c4];

    vals = [0,10,20,30];

    i = 0;

    while(i<vals.length-1 && vals[i]<= slider){

    i++}

    linear(slider,vals[i-1],vals[i],myColors[i-1],myColors[i])

Page 16 of 65

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