(Expressions) Setting Font Size and Content of a text layer
I'm trying to set my font size based on the content of my text layer . It should interweave with sourceRectAtTime().width in the end to scale (but using the font size and not scale) it the text goes out of bounds. But my problem seems to be a little bit more basic than that dependence:
I dont have a problem setting the font size with an expression if I use the source text written by hand:
text.sourceText.style.setFontSize(25);
But when I try to set my text via expression, the FontSize command won't work anymore:
text.sourceText.style.setFontSize(25);
text.sourceText.value = "This should be way smaller";

