Forum Replies Created

  • Dolph Kawalec

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

    I see. That explains the error then. Thanks so much for your help. If you have any other suggestions, feel free to send them my way.

    Cheers!

  • Dolph Kawalec

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

    That’s why I’m trying to put an expression on the fill, something similar to the one that works on the source text. I wouldn’t need to animate it, I would just need it to come after the animator that offsets the text so the characters are colored appropriately.

  • Dolph Kawalec

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

    The idea is to have a block of “password text” that is cycling over and over. I was hoping I could add a character offset to the text layer, but the offset is applied after the source code is affected by the expression. So the the color coding stays attached to the original text. If a letter changes to a number, it will still have the original color of the letter still assigned to it.

    I’m thinking if I can apply the fill color to the text through a text animator I can run the offset first, followed by the expression for the fill colors and it should work, right?

  • Dolph Kawalec

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

    I have a follow up question, Dan.

    I’m trying to animate the characters to randomly offset, so doing this on the Source Text level will only apply the colors to the original text correctly. I tried to run it through AI again to apply it to a text animator and it came up with this:

    // Define colors

    letterColor = [.4784, .4784, .4784]; // letters

    numberColor = [.1333, .4275, .7804]; // numbers

    symbolColor = [.6196, .2235, .3686]; // symbols

    // Get the source text

    txt = text.sourceText;

    // Get this character

    c = txt[textIndex – 1]; // textIndex is 1-based

    // Default color

    col = symbolColor;

    // Test character type

    if (c.match(/[A-Za-z]/)) {

    col = letterColor;

    } else if (c.match(/[0-9]/)) {

    col = numberColor;

    }

    col

    But I’m getting that “textIndex is not defined” again. Do you know how to make it work?

  • Dolph Kawalec

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

    Thanks Dan! Worked like a charm. (Didn’t realize I uploaded the wrong screenshot – hope that wasn’t too confusing 😀)

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