Forum Replies Created

Page 9 of 9
  • Lord Scales

    May 1, 2007 at 12:45 am in reply to: expression needed to count time while song plays

    [Colin Braley] “{
    for( i = 0; i < Math.abs( amtOfDigits - (v + "").length ); i++) v = "0" + v; return v; }"

    I understood almost nothing there =(.
    Could you explain what “++” does? And “”? And the “return”?
    Sorry I don’t know this very weel.

    You can add a Text > Timecode or this expression in the Source Text: timeToTimecode(t = time + thisComp.displayStartTime, timecodeBase = 30, isDuration = false), but the Colin’s is much better!

    Lord Scales

  • Lord Scales

    April 30, 2007 at 12:36 am in reply to: Opacity of Layer 1 driven by Position of Layer 2

    You are welcome!

    There are some variations of it:
    x = thisComp.layer(“name”).transform.position[2]
    ease (x, 0, 30, 0, 100)

    x = thisComp.layer(“name”).transform.position[2]
    easeIn (x, 0, 30, 0, 100)

    x = thisComp.layer(“name”).transform.position[2]
    easeOut (x, 0, 30, 0, 100)

    In ease, when the value of x is 0, the velocity is 0 and when the value of x is 30, the velocity is 0 also.

    In easeIn, when the value of x is 30, the velocity is 0 and in easeOut, when the value of x is 0 the velocity is 0.

    Lord Scales

  • Lord Scales

    April 29, 2007 at 11:37 pm in reply to: Opacity of Layer 1 driven by Position of Layer 2

    [johnnyfix] “Put another way: when button’s Z value is 0, then text’s opacity is 0,
    but when button’s value is 30 (or possibly 60), then text’s opacity is 100.”

    I would do:

    x = thisComp.layer(“name”).transform.position[2]
    linear (x, 0, 30, 0, 100)

    So, as the value of “x” changes from 0 to 30, the opacity changes from 0 to 100 in a linear interpolation.

  • Lord Scales

    April 27, 2007 at 9:49 pm in reply to: 3D Stroke Expression

    I asked Dan about this and it seems to be impossible because masks don’t give us a position coordinate. I hope, in a future version of AE Adobe will think about this.

    And I think 3D Stroke could give a coordinate about the position of the stroke “emitter”, but until then, I am going to use Write-on effect when I need coordinates.

  • Lord Scales

    April 27, 2007 at 7:18 pm in reply to: Can I simplify this expression?

    I almost fainted when I saw that, so simple, so easy…

    I didn’t know toFixed till now, it is incredible to simplify numers (not as incredible as you, Dan).

    It is a good think to add in your Expressioneer’s Design Guide, isn’t it?

    Thank you very much!

Page 9 of 9

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