HI Dan, thanks for the reply.
I tried plugging in that expression and adjusting it as needed, but kept getting the same error I was getting when I was attempting to write other expressions with loops:
“timeout while waiting for the engine”
I have 16gb of RAM, so I find it hard to believe that its a memory issue, but maybe there are config settings I haven’t taken into account. Any other ideas? I know the expression is a bit complex but aside from that there is barely any render-intensive material in the comp. Really just one layer with a lightweight instance of Particular (never more than 300 particles visible at once).
Really appreciate the help!
The expression I used is below
pulse = (comp("soundkeys").layer("bridge amp").effect("Both Channels")("Slider"));
threshold = 15.0;
above = false;
frame = timeToFrames(time);
while (true){
t = framesToTime(frame);
if (above){
if (pulse.valueAtTime(t) < threshold){
frame++;
break;
}
}else if (pulse.valueAtTime(t) >= threshold){
above = true;
}
if (frame == 0){
break;
}
frame--
}
seedRandom(frame,true);
random([0,0,0,1],[1,1,1,1])