Originally Posted by
JohnWPB
It is actually pretty easy, being you are using a script to calculate the slider bars already.
Put this line of code in your skin:
S,725,77,70,447,720,77,60,447,v,01,"Bar.png",60,"$ ElevSlider$",
Now, in your script you just need to set the limit of the $ElevSlider$ variable to be between 0 and 65535. For instance 32767 would be the very center, or the middle, of the slider.
Being there are 20 steps of this slider, the formula to calculate it would be
$ElevPosition = ($YourNumber * 65535)/20
rr.Execute ("SetVar;ElevSlider;" & ElevPosition)
Where your number is between 1 and 20. It is best to round the number up to 1 so there is no division or multiplication by 0.
To test it to see how it works, its best to put that line in a skin, and in the skin tool fire the command SetVar;ElevSlider;32650. By changing that number you will see the slider move in the skin. Once you see that, it should be fairly simple to figure it out :)