-
How to combine 2 expressions under Source Text
Hi,
I would like to create an expression that when applied to Source Text, allow me to repeat a word horizontaly and verticaly and also uses slider expressions to animate the font size, leading and tracking.
So this is the styling part:
txt = text.sourceText;
var z = effect("Size")("Slider");
var l = effect("Leading")("Slider");
var t = effect("Tracking")("Slider");
createStyle().setFontSize(z).setAutoLeading(false).setLeading(l).setTracking(t).setText(txt);And this is the repeating part:
xRepeater = effect("xRepeat")("Slider").value;
yRepeater = effect("yRepeat")("Slider").value;
horzRepeat = txt.repeat(xRepeater);
vertRepeat = horzRepeat + "\n";
vertRepeat.repeat(yRepeater);Both work independently, i’m just scratching my head about how to combine them.