-
Translating X position data to -100 to 100 slider range
I have a slider (actual artwork that is a slider) that is part of a graph. It needs to be controlled by an expression control slider with value range of -100 to +100 (-100 is the far left of the slider art, +100 is far right). here’s a picture

The triangle needs to move across the slider as the value changes. Super simple.I can’t figure out how to translate the position values of the start and the end points to the -100 to 100 value range of the expression slider. In this comp the start X position value is 0, and the end value is 800. So somehow I need to define the following:
-100 (slider range) = 0 (x position)
+100 (slider range) = 800 (x position)This is probably simple math, but well, I never paid much attention in math class- too busy drawing! Any help would be GREATLY appreciated. Thanks!