Forum Replies Created

Page 1050 of 1081
  • Dan Ebberts

    October 11, 2005 at 7:03 pm in reply to: Expression for multiplying

    Something like this:

    factor = .5;
    x = Math.round(time*time*factor);
    Math.pow(2,x)

    factor determines how fast in counts.

    Dan

  • Dan Ebberts

    October 11, 2005 at 1:18 pm in reply to: simple expression question

    Assumptions: The flower that animates is named “master” and your scaling is uniform. Apply this scale expression to the other flowers:

    s = thisComp.layer(“master”).scale;
    value*s[0]/s.valueAtTime(0)[0]

    Dan

  • Dan Ebberts

    October 11, 2005 at 1:18 pm in reply to: simple expression question

    Assumptions: The flower that animates is named “master” and your scaling is uniform. Apply this scale expression to the other flowers:

    s = thisComp.layer(“master”).scale;
    value*s[0]/s.valueAtTime(0)[0]

    Dan

  • Dan Ebberts

    October 10, 2005 at 5:37 pm in reply to: Converting old motion math preset into expression

    See the 10/7 thread “expression with springs”.

    Dan

  • Dan Ebberts

    October 10, 2005 at 5:37 pm in reply to: Converting old motion math preset into expression

    See the 10/7 thread “expression with springs”.

    Dan

  • Dan Ebberts

    October 10, 2005 at 5:35 pm in reply to: controlling time marker with script?

    myLayer.startTime = 0;

    Dan

  • Dan Ebberts

    October 10, 2005 at 2:10 pm in reply to: How to bend pictures to cylinder in 3D?

    Conoa Easy Shapes or Boris Continuum would work.

    Dan

  • Dan Ebberts

    October 10, 2005 at 2:06 pm in reply to: Prespective problem! Thanks for help

    Corner Pin?

    Dan

  • Dan Ebberts

    October 8, 2005 at 10:53 pm in reply to: expression with springs

    You know, I just remebered that I had a brute-force method of doing the MM spring thing with expressions. It has to loop through the entire time line on every frame so it will undoubtedly bog down in long comps, but here it is:

    restLength = 20; //rest length (pixels)
    damp = .95;
    leader = thisComp.layer(“leader”);

    fDur = thisComp.frameDuration;
    currFrame = Math.round(time/fDur);

    p2 = position.valueAtTime(0);
    v2 = 0;
    for (f = 0; f <= currFrame; f++){ t = f*fDur; p1 = leader.position.valueAtTime(t); delta = p2 - p1; nDelta = normalize(delta); a = 2*nDelta*(length(delta) - restLength)*fDur; v2 = (v2 - a)*damp; p2 += v2; } p2 Dan

  • Dan Ebberts

    October 8, 2005 at 10:53 pm in reply to: expression with springs

    You know, I just remebered that I had a brute-force method of doing the MM spring thing with expressions. It has to loop through the entire time line on every frame so it will undoubtedly bog down in long comps, but here it is:

    restLength = 20; //rest length (pixels)
    damp = .95;
    leader = thisComp.layer(“leader”);

    fDur = thisComp.frameDuration;
    currFrame = Math.round(time/fDur);

    p2 = position.valueAtTime(0);
    v2 = 0;
    for (f = 0; f <= currFrame; f++){ t = f*fDur; p1 = leader.position.valueAtTime(t); delta = p2 - p1; nDelta = normalize(delta); a = 2*nDelta*(length(delta) - restLength)*fDur; v2 = (v2 - a)*damp; p2 += v2; } p2 Dan

Page 1050 of 1081

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