-
Compine two text change scrips – setFont and toLowerCase
I am using an expression to give control of a font with a slider, But I want to add similar control over whether the text (a single letter on it’s own layer) is uppercase or lowwercase. I’m failing at the first hurdle. When I add a toLowerCase (before trying to connect a slider) it just overrides the font changer. It’s pretty basic chaining expressions I reckon, but could do with a hand! Thanks
var fontArray=[
“Impact”,
“AbrilFatface-Regular”,
“KufiStandardGK”,
];
v=Math.round(effect(“Slider Control”)(“Slider”));
text.sourceText.style.setFont(fontArray[v]);
— above this line works until I add below this line ————-
text.sourceText.toLowerCase();