Forum Replies Created

  • Will Skinner

    May 28, 2010 at 1:46 am in reply to: Layer facing another layer.

    Scrub that – i got it using

    “lookAt”

  • Will Skinner

    April 11, 2010 at 9:50 am in reply to: Determining Parent Layer Control

    Hi Dan

    I have used this expression successfully for the position, but i can’t get it to work for Rotation. Was it intended for Rotation aswell or does that require a different expression ?

    Thanks!

  • Will Skinner

    June 25, 2008 at 7:38 am in reply to: Magnetic Repel Expression – HELP !!!

    The main expression i have used is this …

    restLength = 70;
    damp = 0.4;
    leader = thisComp.layer(“leader”);

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

    p4 = position.valueAtTime(0);
    v2 = 0;
    for (f = 0; f <= currFrame; f++){ t = f*fDur; p1 = leader.transform.position.valueAtTime(t); delta = p4 - p1; nDelta = normalize(delta); a = 5 * nDelta * (length(delta) - restLength) * fDur; v2 = (v2 - a) * damp; p4 += v2; } p4 The comp consists of lots of thin vertical lines in a row. The above expression works fairly well when i move the 'leader' line left to right, the lines to its left follow with some delay and elasticity. However i want the lines that are to the right of the 'leader' line to to be repelled right as the leader gets nearer but so there is no cross over and the lines on the leaders right become more compressed together...but never touch.

  • Will Skinner

    November 25, 2005 at 2:45 am in reply to: Updating while scrubbing through…

    Thats it – Thank you, such a silly little problem. I should know better!!!!!

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