-
Changing font color using expressions for Poker
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"
}