Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions not following any leader

  • not following any leader

    Posted by Jason W. miltt on June 10, 2009 at 10:03 am

    Hi:

    I copied the follow the leader expression from an old post here but it doesnt seem to work.

    I have a layer called “Leader” and I apply to the childs the following but it triggers an error. Maybe there is some typo or something.

    Thanks.

    inertia = 0.75;
    stiffness = 0.20;
    lagValue = calcValue(0);
    f= thisComp.frameDuration;
    will=0;
    for (t=0; t<=time; t+=f) { delta = calcValue(t) - lagValue; will = will * inertia + delta*stiffness ; lagValue +=will } lagValue; function calcValue(t) { return thisComp.layer(index-1)position.valueAtTime(t-0.1); }

    Jason W. miltt replied 16 years, 11 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    June 10, 2009 at 12:34 pm

    There’s a period missing in next-to-last line. It should look like this:

    return thisComp.layer(index-1).position.valueAtTime(t-0.1);

    Dan

  • Jason W. miltt

    June 10, 2009 at 6:07 pm

    thanks!

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