ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Return a specific value from a linear range

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Reuben Lara
Return a specific value from a linear range
on Oct 1, 2018 at 9:48:14 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?


Return to posts index

Dan Ebberts
Re: Return a specific value from a linear range
on Oct 1, 2018 at 11:18:36 pm

This should work:

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


Dan



Return to posts index

Reuben Lara
Re: Return a specific value from a linear range
on Oct 8, 2018 at 1:30:04 pm

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

R


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]