Linear Range Mapping

// add a slider to a null
// use this slider to control another property
// the slider has a range of 0 to 100
// you can clamp that value by adjusting the inputs low and high
// tie this to some y values to make some sort of scrolling happen
// if the value is 0 it will output 500
// if the value is 50 it will output 500 plus 50*500

input = effect("Slider Control")("Slider"); // 0 to 100
inputLow = 0;
inputHigh = 100;
outputLow = -456;
outputHigh = 1234;

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




Learn More :