Wow, thanks for the help Tomas! I don’t know why, when I pasted the expression, it keeps giving me error ” SyntaxError: Unexpected token = ”
I already tried to fix it but couldn’t make it work, even deleting some parts, it keeps giving me this error.
Me and a friend came up with a expression that also worked, but it only resizes the text. When we use it, we can’t pull the text from another layer like we should be able to. We can’t link the sourceText to a layer on the “Data” comp like I explained before, After Effects seems to just ignore if we try.
The expression we came up with was this one:
minSize = 100;
maxSize = 10;
factor = 1.5;
l = thisLayer.text.sourceText.length;
size = Math.max(minSize, maxSize – (l / factor));
style.setFontSize(size);