-
Expression optimization – are values ever cached?
Perhaps someone can settle this for me. ChatGPT and Gemini are giving me conflicting answers, but it looks like I may have been writing expressions wrong for years…
Let’s say I have a ton of layers with a Position expression. A chunk of the expression calculates the same value on every layer. Normally, I would put that chunk on a separate slider on a Control Layer, and then reference that value in each expression. Is that more efficient, or does that take even longer because After Effects has to call up that other layer, plus recalculate that chunk of code each time anyway?
And if values aren’t cached across layers, what about across properties? Like, if multiple expressions on a single layer all have the same chunk of code. Does it make sense to put that on a separate slider, if it’s on that same layer?
Thanks in advance
