Forum Replies Created

  • Romain Charles

    June 18, 2018 at 12:36 pm in reply to: Movement affecting scale

    Thank you Andreas,

    I applied your expression on scale (using “(n > 0 && t < time_max)” instead of “(n > 0 && t < time_max)”), And the result is not what I am expecting : the scale is modified according to the velocity or speed position. But there’s no bouncing effect after.
    I had already tried to do the same thing, using “transform.position” instead of “propertyPosition.value” (is there a difference?) but didn’t work either.
    That’s why I used the second method.

  • Update

    memberA=thisComp.layer("épaule droite");
    memberB=thisComp.layer("patte avant droite");
    memberC=thisComp.layer("mollet avant droite");

    function getWorldPos(L){
    return L.toWorld(L.anchorPoint);
    }

    distA = length(getWorldPos(memberA),getWorldPos(memberB));
    distB = length(getWorldPos(memberB),getWorldPos(memberC));
    radius = distA+distB;

    center = getWorldPos(memberA);
    pos = getWorldPos(thisLayer);

    v = pos - center;
    length(v) > radius ? center + normalize(v)*radius : value

  • Hello, this is how I used your expression to work better on duik rigging.
    I lock the controller on the members.
    The expression is applied to the controller position.
    Thanks to the both of you !

    // layers relationships : member C parented to memberB parented to memberA parented to control

    memberA=thisComp.layer("cuisse droite");
    memberB=thisComp.layer("patte arrière droite");
    memberC=thisComp.layer("mollet arrière droite");
    control=thisComp.layer("corps");

    function getWorldPos(L){
    return L.toWorld(L.anchorPoint);
    }

    distA = length(getWorldPos(memberA),getWorldPos(memberB));
    distB = length(getWorldPos(memberB),getWorldPos(memberC));
    radius = distA+distB;

    // if the anchorPoint of the control layer is no [0,0]
    center = memberA.transform.position
    -corps.transform.anchorPoint;

    position = transform.position;
    v = position - center;
    length(v) > radius ? center + normalize(v)*radius : value

  • Thank you too Dan, that gives me the occasion to work my javascript 😉

  • Thank you very much, I spent my entire day trying to find a solution !
    You’re the best !

  • Romain Charles

    January 5, 2015 at 6:29 pm in reply to: Script to manage keyframes

    Thanks a lot Brian, I’m going to look at that.
    Thank you

  • Romain Charles

    November 22, 2014 at 8:26 pm in reply to: no more immediate preview

    The newbie thanks you.

  • Romain Charles

    November 22, 2014 at 5:21 pm in reply to: no more immediate preview

    Actually I have this problem for each real-time operation : using camera with tools, moving the timeline’ cursor… I have to stop the handling to see the result.

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