Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Return a specific value from a linear range

  • Return a specific value from a linear range

    Posted by Reuben Lara on October 1, 2018 at 9:48 pm

    I’d like to be able to access the remapped values of individual spots of a linear calculation. For example, in the following scenario:

    linear(time,0,10,50,100);

    How can I know which value between 50 and 100 has been remapped to range 8, for instance?

    Reuben Lara replied 7 years, 7 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    October 1, 2018 at 11:18 pm

    This should work:

    x = 8;
    linear(x,0,10,50,100);

    Dan

  • Reuben Lara

    October 8, 2018 at 1:30 pm

    Dan, thanks so much. This helped me understand how linear works under the hood.

    R

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