-
Add scale modifier to specific item in “if else” statement
Here is a sample of some code for an if else statement that I have applied to the source text layer of some text I am working on. My question is whether I can add a specific scale property to certain words that are too long. I need for the really long words to be smaller to fit in a specific area. In the example below “Rainbow Warrior” is much larger than the other words and needs to be scaled down. Anyway for it to be targeted specifically?
Thanks
L = comp("!Scores-Lower-Third").layer("Scores Lower Third Home Control");
if(L.effect("Air Force")("Checkbox").value)
"Falcons"
else if(L.effect("Akron")("Checkbox").value)
"Zips"
else if(L.effect("Hawaii")("Checkbox").value)
"Rainbow Warriors"
else
value;