-
Calculate an expression value only once?
Hello there,
I am currently trying to setup a production kit for some OnTopGraphics. I am using an expression to determine the width of a text layer. In the end it should work that some text is entered and a mask will move to the end of the text layer. This works fine so far. But I realized that it takes really long to render this sequence because the text layer expression is calculating for every single frame even though the text stays the same (and also the width).
I was wondering if there is a way to calculate this value once and reuse it in the other frames of the composition (like a global value)Any help or advice is appreciated…
Thank you!
in theory something like this:
if
(textwidth == undefined) {calculation stuff...;}
[textwidth]