Skip to main content
Participant
June 19, 2018
Question

loopOut expression ignores layer in-point

  • June 19, 2018
  • 1 reply
  • 463 views

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)

This topic has been closed for replies.

1 reply

Participating Frequently
June 19, 2018

Hi,

if(time < thisLayer.startTime ){

    //processing when layer does not started

}

How is it?