-
Accessing the result of an expression after it’s stopped
Hi,
My brain is melting trying to work this out!!
I have a really big expression thats working fine, but it has lots of looping in it so it’s really computationally intensive and slows my render speed right down. I just want to run for one frame, come up with a single value (for example a position) and then hold that value without re-calculating the expression every single frame, I don’t need the result to change over time).I’ve used an if statement like this
if (time<=0.04)
{
blah blah big complicated expression
}
else
{
value
}and it works for the first frame, but as soon as it passes to the next frame, it jumps back to the value it was at before my expression, instead of staying where it is.
I also tried putting the expression in the source text of a text layer with a duration of only a frame, and having a simple expression on the position keyframe to take it’s values from that, but that seems to make it still re-calculate the text layer’s expression for every frame.
I can’t use a script because it needs to run in aerender and the video assets don’t load before the script runs.
Does anyone know a way around this?
Thanks,
benif (time<=0.04)
{
blah blah big complicated expression
}
else
{
value
}