Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions LoopOut a Mesh warp?

  • LoopOut a Mesh warp?

    Posted by Kurisuta Vd wilk on October 24, 2016 at 5:26 pm

    Hi!

    I have a .ai layer which is part of a rig, and I would like to mesh warp this layer continuously throughout the whole comp.
    So I animated the mesh warp, and I wanted to LoopOut these keyframes so the movement would be there all the time, But I get an error that this expression is not possible with this effect.
    Anyone know why?
    But more important, is there a work around?
    It is not possible to precomp this layer and time-remap this movement since its part of a rig and linked with a lot of other expressions to other layers and comps.
    Anyone having an idea I can try?

    Kurisuta Vd wilk replied 9 years, 6 months ago 2 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    October 24, 2016 at 6:29 pm

    Try this:


    if (numKeys >1){
    if (time > key(numKeys).time){
    t = (time - key(numKeys).time)%(key(numKeys).time - key(1).time);
    valueAtTime(t);
    }else{
    value;
    }
    }else
    value

    Dan

  • Dan Ebberts

    October 24, 2016 at 6:31 pm

    That wasn’t quite right. This should be better:


    if (numKeys >1){
    if (time > key(numKeys).time){
    t = (time - key(numKeys).time)%(key(numKeys).time - key(1).time);
    valueAtTime(key(1).time + t);
    }else{
    value;
    }
    }else
    value

    Dan

  • Kurisuta Vd wilk

    October 25, 2016 at 10:25 am

    Yes ! Works like a charm ! Thanks Dan !

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