Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Looping Expression

  • Looping Expression

    Posted by Luke Hale on April 29, 2007 at 6:53 pm

    I’ve got this expression

    pos1 = thisComp.layer(“Pre-comp 1”).transform.position;
    pos2 = thisComp.layer(“Middle Neuron”).transform.position;
    linear(time, 6, 8, pos1, pos2);

    I want to loop it so the motion repeats every few seconds. How would i do so? Thanks very much.

    Filip Vandueren replied 19 years ago 2 Members · 1 Reply
  • 1 Reply
  • Filip Vandueren

    April 29, 2007 at 7:09 pm

    you can wrap time around using the modulus operator.

    like this:

    time%10

    so for time =11 you’ll get 1,
    idem for time=21

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy