-
Linking number of characters to opacity
Hello everyone, this is my first discussion here. Been a huge fan and for almost every problem with an expression, I have managed to find a solution on this forum.
However, I can’t find the solution to this specific problem.
For example, I have a text layer and have an expression in it using a global variable in the source text $.mytext = thisLayer.text.sourceText.length and it retrieves a number of characters.
I would love to connect for example opacity of the other shape by typing in opacity field if ($.mytext < 5) {100} else {0} and every time I change the text and it has more characters than five opacity will go down to zero. It just stops working if I change the text to something else.
Cheers