Forum Replies Created

  • Gabriel Netto

    March 11, 2010 at 3:39 pm in reply to: Changing font color using expressions for Poker

    Thank you very much Dan!
    I’m a great fan of your work!

    I’ve tried the method you proposed but I get a “Class ‘Layer’ has no property or method named ‘textindex'” warning.

    I would love to know what I’m doing wrong… (Excuse my ignorance. I’m really a newby and this is my second -serious- approach to expressions)

    (I’ve placed the expression in Animator 1- Fill color and deleted the Range selector)

    But I thought on another “dirty” way to solve this. I’ve used a Fill filter on my code text layer and linked the other two layers (number and symbol) to it. Then I used code below. It’s working but as I said before it would be great to understand your method… Thanks again!

    Gabriel
    https://www.andar7.com

    h = [1, 0, 0, 1];
    d = [1, 0, 0, 1];
    s = [0, 0, 0, 1];
    c = [0, 0, 0, 1];
    eval(thisComp.layer("LER_TXT").text.sourceText.value);

  • Gabriel Netto

    March 10, 2010 at 4:44 pm in reply to: Expression for color control

    I’m an expressions newby so…
    Could someone help me with this question?

    I’m working on a CARD project based on 4 variables (CS3). As you will see they are on an external txt and code is located on a text layer. I’m using “Hoyle Playing Cards” font symbols and that’s why they need to change: s = “q” (s for spades is q character, etc.)

    My problem is that I need to alternate between red and black font colors. (spades and hearts have to be red, spades and clubs have to be black) but I just can’t figure out how to change this colors using expressions… I’ve tried to use fill but I don’t know how to set it’s color property via expressions.

    Maybe a Color Control or a sampleImage() effect?

    Any help is really appreciated!!!
    Thanks in advance!

    Gabriel Netto

    //Here's my code:

    s = "q";
    c = "w";
    d = "e";
    h = "r";
    eval(thisComp.layer("LER_TXT").text.sourceText.value);
    myPath = "/MyHD/Prog1.txt";
    try{
    $.evalFile (myPath);
    eval(thisComp.name)[1];
    }catch (err){
    "not found"
    }

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