loopOut expression ignores layer in-point
Hi all,
I'm trying to use a loopOut expression on a slider to control the size of many other layers with precise repetition.
The problem is, the loop ignores the defined number of key frames to loop, which begin at the layer in-point.
Instead, the loop starts at the beginning of the composition. Therefore the loop includes unwanted time and gets more and more out of whack with each pass.
Any suggestions?

loopOut(type = "cycle", numKeyframes = 4)
cb = effect("Checkbox Control")("Checkbox");
if (cb.value == true)
t = time%key(numKeys).time
else if (cb.numKeys > 0)
t = cb.key(cb.numKeys).time%key(numKeys).time
else
t = 0;
valueAtTime(t)