Say the slider moves between -180 and 180, and we call its value [i]s/I], and you have some value for camera distance because, you know, different model sizes, then you want something like:
Lua Code:
local deg = s * math.pi / 180
local y = math.pow (math.sin(deg), 2) * camDistance
local z = math.pow (math.cos(deg), 2) * camDistance
(I think. It's been a long day.)