Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Slider Values Based on Frame Rate

  • Slider Values Based on Frame Rate

    Posted by Chris Taylor on April 8, 2015 at 11:25 am

    Hi there,

    I was wondering if there was an expression that I could add to a slider that would lock its values to a time.
    For example, a standard slider goes from 1-100 and has decimal values from .01 to .99, is there an expression that would convert these values to whatever frame rate I wanted?
    So, instead of the decimal values being .01 to .99, they would be .01 to .30?

    Dan Ebberts replied 11 years, 4 months ago 2 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    April 8, 2015 at 3:52 pm

    I’m not sure if this is what you mean, but you can use linear() to remap a range of values, like this

    linear(value,.01,.99,.01,.30)

    Dan

  • Chris Taylor

    April 8, 2015 at 4:30 pm

    no that doesnt seem to work. It seems to lock the slider value to .30.

    It might just be a case of multipying the values by 3.33333….?

  • Dan Ebberts

    April 8, 2015 at 4:42 pm

    If you enter 0.5 for the slider value, you should get 0.16. Is that not what you wanted?

    Dan

    (edit)

    I just re-read your original post, and maybe this is what you’re after:

    linear(value,1,100,.01,.30)

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