Forum Replies Created

Page 1049 of 1081
  • Dan Ebberts

    October 14, 2005 at 6:22 pm in reply to: Expression for Digital 24 Hours clock

    You’d think I’d have learned by now to always try it before posting. This should work better:

    beginHr = 3;
    beginMin = 0;
    beginSec = 1;
    beginHun = 0;

    beginTime = (beginHr*60 + beginMin)*60 + beginSec + beginHun/100;

    function digits(myVal,myNumDigits){
    var s = myVal.toString();
    while (s.length < myNumDigits) s = '0' + s; return s; } currTime = beginTime - time; hr = digits(Math.floor(currTime/3600),2); min = digits(Math.floor((currTime%3600)/60),2); sec = digits(Math.floor(currTime)%60,2); hun = digits(Math.floor(currTime%1*100),2); hr + ":" + min + ":" + sec + "." + hun Dan

  • Dan Ebberts

    October 14, 2005 at 5:30 pm in reply to: Expression for Digital 24 Hours clock

    24 hour count down clock (expression for text layer source text):

    // 24 hour count down clock

    beginHr = 23;
    beginMin = 59;
    beginSec = 59;
    beginHun = 0;

    beginTime = (beginHr*60 + beginMin)*60 + beginMin + beginHun/100;

    function digits(myVal,myNumDigits){
    var s = myVal.toString();
    while (s.length < myNumDigits) s = '0' + s; return s; } currTime = beginTime - time; hr = digits(Math.floor(currTime/3600),2); min = digits(Math.floor((currTime%3600)/60),2); sec = digits(Math.floor(currTime)%60,2); hun = digits(Math.floor(currTime%1*100),2); hr + ":" + min + ":" + sec + "." + hun Dan

  • Dan Ebberts

    October 14, 2005 at 5:30 pm in reply to: Expression for Digital 24 Hours clock

    24 hour count down clock (expression for text layer source text):

    // 24 hour count down clock

    beginHr = 23;
    beginMin = 59;
    beginSec = 59;
    beginHun = 0;

    beginTime = (beginHr*60 + beginMin)*60 + beginMin + beginHun/100;

    function digits(myVal,myNumDigits){
    var s = myVal.toString();
    while (s.length < myNumDigits) s = '0' + s; return s; } currTime = beginTime - time; hr = digits(Math.floor(currTime/3600),2); min = digits(Math.floor((currTime%3600)/60),2); sec = digits(Math.floor(currTime)%60,2); hun = digits(Math.floor(currTime%1*100),2); hr + ":" + min + ":" + sec + "." + hun Dan

  • Dan Ebberts

    October 13, 2005 at 7:12 pm in reply to: A (kinda) IK question…

    I think you just need to subtract the rotation of the body from your result, like this:

    radians_to_degrees(angle) – thisComp.layer(“body”).rotation;

    Dan

  • Dan Ebberts

    October 13, 2005 at 7:12 pm in reply to: A (kinda) IK question…

    I think you just need to subtract the rotation of the body from your result, like this:

    radians_to_degrees(angle) – thisComp.layer(“body”).rotation;

    Dan

  • Dan Ebberts

    October 13, 2005 at 12:48 am in reply to: A (kinda) IK question…

    Changing your first line to this should do the trick:

    this_point=toWorld(anchor_point);

    Dan

  • Dan Ebberts

    October 13, 2005 at 12:48 am in reply to: A (kinda) IK question…

    Changing your first line to this should do the trick:

    this_point=toWorld(anchor_point);

    Dan

  • Dan Ebberts

    October 12, 2005 at 10:51 am in reply to: expression to cull back-facing 3d layers

    Hey guys, for future reference, this one does the same thing more efficiently:

    if (toCompVec([0, 0, 1])[2] > 0 ) value else 0

    Dan

  • Dan Ebberts

    October 12, 2005 at 10:51 am in reply to: expression to cull back-facing 3d layers

    Hey guys, for future reference, this one does the same thing more efficiently:

    if (toCompVec([0, 0, 1])[2] > 0 ) value else 0

    Dan

  • 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

Page 1049 of 1081

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