-
“Calculate Expression just once”-hack. Legit?
Hey gang,
I was snooping around in a collegue’s After Effects Project and stumbled upon a weird expression idea. This is what he had, first line, on pretty much every property.
posterizeTime(0) // calculate expression just once
To be honest, this seems bollocks to me.
From what I would assume, After Effects would still have to parse the property on every frame—and not just magically save on CPU.However, I did a little scientific diddly-doo experiment:
posterizeTime(0)
if(time<1) {
"under one second"
} else {
banana // break expression with syntax error
}And look at that, there’s no syntax error coming up. Even as I move the cursor over the 1 second mark. Without posterize, an error does show up immediately.
So, what’s the deal here?