Forum Replies Created

  • Gerben Greuliker

    June 24, 2020 at 12:48 pm in reply to: Building a scrabble expression

    Just hit a bump in the road…
    I need to read the value/character from another layers source text and then apply the expression to it.
    A simple thisComp.layer(“character”).text.sourceText doesn’t do the trick.

    What am I doing wrong?

  • Gerben Greuliker

    June 17, 2020 at 10:56 am in reply to: Building a scrabble expression

    Found a sollution!
    I’ve made two new text layers, pickwhipped the Source Text of the input layer and use Slice to trim of the unwanted character.
    Probably not the cleanest method but it works!

    For the character: thisComp.layer("SCRABBLE VARIABLE").text.sourceText.slice(0,1)
    For the number: thisComp.layer("SCRABBLE VARIABLE").text.sourceText.slice(1)

  • Gerben Greuliker

    June 17, 2020 at 9:14 am in reply to: Building a scrabble expression

    Thanks Dan!

    Works like a charm!
    You use the UTF16 code as a base, I would never have thought of that ☺
    The only ‘tweak’ that the code needs is that the numbers need a baseline shift and a smaller font size.
    But I know that you cannot adres font size with an expression.

    Is the solution to output the numeral on a different text layer?
    Then you can control the all the characters properties independently.

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