Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Range Mapping Expression

  • Range Mapping Expression

    Posted by Mark Walczak on April 26, 2010 at 5:39 pm

    Hello everyone,

    Although I’m sure I’m not the first person to need this sort of expression, my googling yielded nothing of value.

    I’m basically looking for a simple expression that will accept “input low” and “input high” values and output “output high” and “output low” values and allow me to scrub between the two.

    There’s an XPresso node within Cinema4D that does this very operation, and I was wondering if anything similar existed within the AE realm.

    Your help is very much appreciated!

    Thank you!

    https://vimeo.com/explosivegraffix

    Lloyd Alvarez replied 12 years, 11 months ago 3 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    April 26, 2010 at 6:46 pm

    You can use linear() to remap a range, like this:

    input = effect(“Slider Control”)(“Slider”);
    inputLow = 0;
    inputHigh = 100;
    outputLow = -100;
    outputHigh = 100;

    linear(input,inputLow,inputHigh,outputLow,outputHigh)

    Dan

  • Mark Walczak

    July 20, 2010 at 3:47 pm

    So, I just googled this exact question again and came across this old forum post. I can’t believe I didn’t thank you, Dan! You’re a tremendous help and resource for the Creative Cow community.

    THANK YOU!

    https://vimeo.com/explosivegraffix

  • Lloyd Alvarez

    November 5, 2011 at 2:41 pm

    Btw, you don’t need an expression to range map the values of a slider. This is built in to every slider in AE. You simple need to right-click on the slider and “Edit Value”, you can then set the range. Check out this demo: https://vimeo.com/31647043

    -Lloyd

    https://aescripts.com

    Some contents or functionalities here are not available due to your cookie preferences!

    This happens because the functionality/content marked as “Vimeo framework” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.

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