Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Counting from 0-150 in 151 frames ?

  • Counting from 0-150 in 151 frames ?

    Posted by Louis Ferrante on October 16, 2013 at 8:27 pm

    OK I am trying to do degrees in increments of 1 for a weather app on android and I am having trouble with the expression seen below!

    4 Is not the right count duration and I cant seem to figure out the right one.
    How would I go about doing the math for this?

    I want it increments of 1 so I can render every frame in that increment. I am trying to go from 0-150° Fahrenheit and i need to render every frame of that for this weather app. If someone could lend me a hand with this expression math I am fairly new to expressions and everyone seems like a challenge to me so much thanks to anyone willing to help.

    <code>beginCount = 0;
    stopCount = 150;

    beginTime = 0; // start counting at time = 0
    countDur =4; // count for 4 seconds

    "" + Math.round(linear(time,beginTime,beginTime + countDur,beginCount,stopCount)) + "°"

    Dan Ebberts replied 12 years, 7 months ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    October 16, 2013 at 10:27 pm

    How about this:

    Math.min(timeToFrames(time),150)

    Dan

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