Forum Replies Created

Page 3 of 1081
  • Dan Ebberts

    November 26, 2025 at 9:51 pm in reply to: Make lens flare reactive.

    Probably. It depends on how you have things set up. Say you have all your underlying elements in a precomp. In an outer comp, you apply the Lens Flare effect to the precomp layer. You could then have an expression like this on the Flare Brightness property:

    p = effect("Lens Flare")("Flare Center");
    s = sampleImage(p,[.5,.5],false,time);
    rgbToHsl(s)[2]*100

    I’m not sure about the matte layer, but depending on what you’re doing you can probably incorporate that into this expression as well.

  • Dan Ebberts

    November 26, 2025 at 3:37 pm in reply to: toFixed bug? More decimals than wanted

    toFixed() converts your numeric result to a string. Then your next operation has to convert it back to a number. You’d have a more predictable result if you only use toFixed() on the final step, like this maybe:

    posterizeTime(5);
    x = random()+2;
    y = x;
    z = (24+y*8).toFixed(4);
  • Dan Ebberts

    October 28, 2025 at 9:48 pm in reply to: Audio sound effects follow type

    You could do something like that with a time-remapped precomp that has all your sound effects arranged at different times and a time remapping expression that plays the sounds in response to typing “events”. The implementation would depend on how you have your type animation set up and what info the expression has available to trigger the different sounds.

  • Dan Ebberts

    September 24, 2025 at 6:35 pm in reply to: Dynamic word cloud / flock (scale and position dependancy)

    That would be a tricky algorithm because the position and scale of each word is dependent on all the other words. Offhand, I can’t think of a reasonable expressions-based solution for something like that.

  • Dan Ebberts

    September 2, 2025 at 10:49 pm in reply to: Error: Unable to find layer “end slices” layer.

    Is it possible that there is more than one comp with that name?

  • Dan Ebberts

    August 26, 2025 at 7:26 pm in reply to: Automatically assign fill color to text characters

    I don’t think an expression on a subsequent animator is going to be able to see the text created by the offset animator. I think it will get the original text. That’s why I was wondering about creating the offset text within the source text expression.

  • Dan Ebberts

    August 26, 2025 at 6:43 pm in reply to: Automatically assign fill color to text characters

    Yes, but a Fill Color animator only gives you access to one additional color. I suppose you could have multiple animators.

  • Dan Ebberts

    August 26, 2025 at 6:28 pm in reply to: Automatically assign fill color to text characters

    textIndex can only be used in an expression for the Amount property of an Expression Selector. What are you doing with character offset exactly? You might be able to incorporate it into the Source Text expression.

  • Dan Ebberts

    August 26, 2025 at 4:46 pm in reply to: Automatically assign fill color to text characters

    Try this Source Text expression:

    letterColor = [1,0,0,1]; // Red
    numberColor = [0,1,0,1]; // Green
    symbolColor = [0,0,1,1]; // Blue
    myExpr = "style";
    for (i = 0; i < value.length; i++){
    c = value[i];
    if (c.match(/[A-Za-z]/)) {
    myExpr += ".setFillColor(letterColor," + i + ",1)";
    } else if (c.match(/[0-9]/)) {
    myExpr += ".setFillColor(numberColor," + i + ",1)";
    } else {
    myExpr += ".setFillColor(symbolColor," + i + ",1)";
    }
    }
    eval(myExpr)
  • Dan Ebberts

    August 25, 2025 at 7:50 pm in reply to: Scale based on Comp Centerpoint expression

    Try changing the second line to this:

    d = length(toComp(anchorPoint), target.position );
Page 3 of 1081

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