Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions At Time Expression that works with a Loop?

  • At Time Expression that works with a Loop?

    Posted by Darryl Torke on September 13, 2012 at 4:10 pm

    I have two layers. One is an simple solid that moves around using a wiggle function, the second is a looping precomposed composition that contains an animation (lets say the loop is 1 second).

    What I would like to happen is to have the precomposed animation appear ontop of the wiggling layer, but *stay* in the same position as when it first appears (not follow the wiggling solid). Currently, with the expression I used, the animated layer follows the wiggling solid.

    I believe using ‘valueAtTime’ is the key, but the problem is the one second interval of the loop where i’d like the animation layer to reposition itself ontop of the wiggling layer

    ** I should note that the loop on the animation layer is made using a time remap on the layer and a the code: loopOut(“cycle”,2)

    (Pseudo) Looping Animation Position Expression:
    thisComp.layer("Wiggle_Layer").position.valueAtTime(//every 1 second interval//);

    I somewhat got the effect, but with only one loop using this:
    thisComp.layer("Emitter").position.valueAtTime(thisLayer.inPoint);

    Dan Ebberts replied 13 years, 8 months ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    September 13, 2012 at 4:49 pm

    I think it would be like this:

    loopDur = 1;
    thisComp.layer(“Wiggle_Layer”).position.valueAtTime(Math.floor(time/loopDur));

    Dan

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