Forum Replies Created

Page 3 of 3
  • Hi Tilman, hi everybody

    Thanks for the thread and all the ideas! I combined some of the ideas to do it, based on the Penner eases. In this expression you can define start and end values in two dimensions. On top 3 Penner functions are defined, at the bottom you have to pick between EaseIn, EaseOut, EaseInOut.

    I hope someone out there still needs this…

    EaseIn = function(power){return function(t){return Math.pow(t, power)}};
    EaseOut = function(power){return function(t){return 1 - Math.abs(Math.pow(t-1, power))}};
    EaseInOut = function(power){return function(t){return t<.5 ? EaseIn(power)(t*2)/2 : EaseOut(power)(t*2 - 1)/2+0.5}}

    dur=1; power=5; //1=linear, 2=Quad, 3=Cubic, 4=Quart, 5=Quint
    startX=value[0]; startY=value[1];
    endX= ; endY= ;

    t=linear(time-inPoint,0,dur,0,1);
    Exp=EaseOut(power)(t);
    x=startX+(endX-startX)*Exp;
    y=startY+(endY-startY)*Exp;
    [x,y]

  • Thank you!!!!!

  • Hi Dan, hi everybody,

    I just found out about the pointOnPath expression. It gives you any point on a path based on a percentage value. Of course, this is very powerful because you can change or even animate the motion path while your objects keep aligned to it. (In my opinion pasting path information onto an objects position is not helpful when you need to align many objects or be able to do quick adjustments. And animate the motion path is impossible)

    “auto-orient” does work, but as soon there is no animation it snaps to a seemingly random orientation. (before and after the animation)

    In this example I use a slider as input to animate the percentage value. But this is not related, whenever there is no movement on the layer, it snaps. I would simply like to copy the first and last “auto-orient” values when there is no animation. Is it possible to replace “auto-orient” with an expression which does the trick?

    L=thisComp.layer(“Shape Layer 1”);
    p=L.content(“Rectangle 1”).content(“Path 1”).path;
    p.pointOnPath(effect(“Slider Control”)(1),time)+L.position

    Help would be much appreciated, I have tons of ideas how I could make use of this.

Page 3 of 3

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